Clang Project

clang_source_code/test/Import/attr/test.cpp
1// RUN: clang-import-test -dump-ast -import %S/Inputs/S.cpp -expression %s | FileCheck %s
2// CHECK: FunctionDecl
3// CHECK-SAME: S.cpp:1:1, col:38
4// CHECK-NEXT: ConstAttr
5// CHECK-SAME: col:32
6
7// CHECK: IndirectFieldDecl
8// CHECK-NEXT: Field
9// CHECK-NEXT: Field
10// CHECK-NEXT: PackedAttr
11// CHECK-SAME: col:26
12
13// CHECK: AttributedStmt
14// CHECK-NEXT: LoopHintAttr
15// CHECK-SAME: line:10:9
16
17extern void f() __attribute__((const));
18
19struct S;
20
21void stmt();
22
23void expr() {
24  f();
25  struct S s;
26}
27