Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Import / attr / test.cpp
blobc9b2d6ed3433ae43ff3b76f9aa87a0d7bb522d41
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
7 // CHECK: IndirectFieldDecl
8 // CHECK-NEXT: Field
9 // CHECK-NEXT: Field
10 // CHECK-NEXT: PackedAttr
11 // CHECK-SAME: col:26
13 // CHECK: AttributedStmt
14 // CHECK-NEXT: LoopHintAttr
15 // CHECK-SAME: line:10:9
17 extern void f() __attribute__((const));
19 struct S;
21 void stmt();
23 void expr() {
24 f();
25 struct S s;