Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Index / paren-type.c
blob09751917a7f446cf52b36532e806df06b9370239
1 // RUN: c-index-test -test-print-type %s | FileCheck --check-prefix=CHECK-TYPE %s
2 // RUN: c-index-test -test-print-type-declaration %s | FileCheck --check-prefix=CHECK-TYPEDECL %s
4 // CHECK-TYPE: VarDecl=VariableWithParentheses:
5 // CHECK-TYPE-SAME: [type=int] [typekind=Int]
6 // CHECK-TYPE-NOT: canonicaltype
7 // CHECK-TYPE-SAME: isPOD
8 extern int (VariableWithParentheses);
10 typedef int MyTypedef;
11 // CHECK-TYPE: VarDecl=VariableWithParentheses2:
12 // CHECK-TYPE-SAME: [type=MyTypedef] [typekind=Elaborated]
13 // CHECK-TYPE-SAME: [canonicaltype=int] [canonicaltypekind=Int]
14 // CHECK-TYPEDECL: VarDecl=VariableWithParentheses2
15 // CHECK-TYPEDECL-SAME: [typedeclaration=MyTypedef] [typekind=Typedef]
16 extern MyTypedef (VariableWithParentheses2);