1 // RUN: c-index-test -single-file-parse %s | FileCheck %s
5 // CHECK-NOT: TypedefDecl=intptr_t
7 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=MyCls
9 // CHECK: [[@LINE+1]]:8: ObjCInstanceMethodDecl=some_meth
14 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test1
17 // CHECK-NOT: [[@LINE+1]]:12:
22 // CHECK-NOT: [[@LINE+1]]:12:
25 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test4
29 #if SOMETHING_NOT_DEFINED
30 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test5
33 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test6
37 #define SOMETHING_DEFINED 1
39 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test7
42 // CHECK-NOT: [[@LINE+1]]:12:
46 #if defined(SOMETHING_NOT_DEFINED)
47 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test9
50 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test10
51 @interface Test10 @end
54 #if defined(SOMETHING_DEFINED)
55 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test11
56 @interface Test11 @end
58 // CHECK-NOT: [[@LINE+1]]:12:
59 @interface Test12 @end
62 #if SOMETHING_NOT_DEFINED1
63 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test13
64 @interface Test13 @end
65 #elif SOMETHING_NOT_DEFINED2
66 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test14
67 @interface Test14 @end
69 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test15
70 @interface Test15 @end
73 #ifdef SOMETHING_NOT_DEFINED
74 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test19
75 @interface Test19 @end
77 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test20
78 @interface Test20 @end
81 #ifdef SOMETHING_DEFINED
82 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test21
83 @interface Test21 @end
85 // CHECK-NOT: [[@LINE+1]]:12:
86 @interface Test22 @end
89 #ifndef SOMETHING_NOT_DEFINED
90 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test23
91 @interface Test23 @end
93 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test24
94 @interface Test24 @end
97 #ifndef SOMETHING_DEFINED
98 // CHECK-NOT: [[@LINE+1]]:12:
99 @interface Test25 @end
101 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test26
102 @interface Test26 @end
105 #if 1 < SOMETHING_NOT_DEFINED
106 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test27
107 @interface Test27 @end
109 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test28
110 @interface Test28 @end
113 #if SOMETHING_NOT_DEFINED
114 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test29
115 @interface Test29 @end
118 #ifdef SOMETHING_NOT_DEFINED
119 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=Test30
120 @interface Test30 @end