TableGen: Generate valid identifiers for anonymous records
[oota-llvm.git] / test / TableGen / ValidIdentifiers.td
1 // Ensure that anonymous names are valid identifiers via the ctags index
2 // RUN: llvm-tblgen -gen-ctags %s | grep -v '^!' | not grep -viE '^[a-z_][a-z0-9_]*\t'
3 // Test validation
4 // RUN: llvm-tblgen -gen-ctags %s | grep '^anonymous' > /dev/null
5 // XFAIL: vg_leak
6
7 class foo<int X> { int THEVAL = X; }
8
9 def : foo<2>;
10
11 def X {
12   foo Y = foo<1>;
13 }