1 // RUN: llvm-tblgen -I %p %s 2>&1 | FileCheck %s --implicit-check-not warning:
5 // TableGen prints records in alpabetical order.
6 // CHECK-NOT: def ifdef_disabled1
7 // CHECK-NOT: def ifdef_disabled2
8 // CHECK: def ifdef_disabled3
9 // CHECK-NOT: def ifdef_disabled4
10 // CHECK-NOT: def ifdef_disabled5
11 // CHECK: def ifdef_disabled4_else
12 // CHECK-NOT: def ifdef_disabled5_else
13 // CHECK: def ifdef_enabled1
14 // CHECK-NOT: def ifdef_enabled2
15 // CHECK: def ifdef_enabled3
16 // CHECK: def ifdef_enabled4
17 // CHECK-NOT: def ifdef_enabled4_else
18 // CHECK: def ifdef_enabled5
19 // CHECK: def ifdef_enabled6
20 // CHECK-NOT: def ifdef_enabled6_else
21 // CHECK-NOT: def ifdef_disabled6
22 // CHECK-NOT: def ifdef_disabled6_else
29 def ifdef_disabled1 : C;
31 #define DISABLED2/*This one is disabled,
37 def ifdef_enabled1 : C;
42 def ifdef_disabled2 : C;
47 def ifdef_enabled2 : C;
52 def ifdef_disabled3 : C;
56 /* _DISABLED4 */ /* padding */ #ifdef _DISABLED4
57 def ifdef_disabled4 : C;
59 def ifdef_disabled4_else : C;
65 def ifdef_disabled5 : C;
70 def ifdef_enabled3 : C;
73 def ifdef_disabled5_else : C;
78 include "prep-region-include.inc"//ENABLED5 is defined inside
81 def ifdef_enabled5 : C;
85 // Double inclusion is an error.
86 include "prep-region-include.inc"
101 def ifdef_disabled6 : C;
107 def ifdef_disabled6_else : C;
129 def ifdef_enabled6 : C;
135 def ifdef_enabled6_else : C;
145 include "non-existent-file.inc"
149 \\\\\ invalid TD text /////