Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / TableGen / ValidIdentifiers.td
blob333ede0c62bc62a9d6df7b3962aef25be39a6e46
1 // RUN: llvm-tblgen -gen-ctags %s | FileCheck %s
2 // XFAIL: vg_leak
4 // Ensure that generated names for anonymous records are valid identifiers via the ctags index.
6 class foo<int X> { int THEVAL = X; }
7 // CHECK: {{^X }}
9 def : foo<2>;
10 // CHECK: {{^anonymous_0 }}
12 def X {
13   foo Y = foo<1>;
15 // CHECK: {{^anonymous_1 }}
16 // CHECK: {{^foo }}