[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / AST / ast-crash-doc.cpp
blobc4959647fc0fbcfd297cd0e4133f2ba9c08b38df
1 // RUN: rm -rf %t
2 // RUN: split-file %s %t
4 // RUN: %clang_cc1 -emit-module -x c++ -fmodules -I %t/Inputs -fmodule-name=aa %t/Inputs/module.modulemap -o %t/aa.pcm
5 // RUN: rm %t/Inputs/b.h
6 // RUN: not %clang_cc1 -x c++ -Wdocumentation -ast-dump-all -fmodules -I %t/Inputs -fmodule-file=%t/aa.pcm %t/test.cpp | FileCheck %s
8 //--- Inputs/module.modulemap
9 module aa {
10 header "a.h"
11 header "b.h"
14 //--- Inputs/a.h
15 // empty file
17 //--- Inputs/b.h
18 /// test foo @return
19 int foo();
22 //--- test.cpp
23 #include "a.h"
25 /// test comment at the primary file
27 int a = foo();
30 // CHECK: TranslationUnitDecl