Welcome to mirror list, hosted at ThFree Co, Russian Federation.

paren-type.c « Index « test « clang - github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 09751917a7f446cf52b36532e806df06b9370239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: c-index-test -test-print-type %s | FileCheck --check-prefix=CHECK-TYPE %s
// RUN: c-index-test -test-print-type-declaration %s | FileCheck --check-prefix=CHECK-TYPEDECL %s

// CHECK-TYPE: VarDecl=VariableWithParentheses:
// CHECK-TYPE-SAME: [type=int] [typekind=Int]
// CHECK-TYPE-NOT: canonicaltype
// CHECK-TYPE-SAME: isPOD
extern int (VariableWithParentheses);

typedef int MyTypedef;
// CHECK-TYPE: VarDecl=VariableWithParentheses2:
// CHECK-TYPE-SAME: [type=MyTypedef] [typekind=Elaborated]
// CHECK-TYPE-SAME: [canonicaltype=int] [canonicaltypekind=Int]
// CHECK-TYPEDECL: VarDecl=VariableWithParentheses2
// CHECK-TYPEDECL-SAME: [typedeclaration=MyTypedef] [typekind=Typedef]
extern MyTypedef (VariableWithParentheses2);