diff options
Diffstat (limited to 'test/TableGen')
-rw-r--r-- | test/TableGen/ValidIdentifiers.td | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/TableGen/ValidIdentifiers.td b/test/TableGen/ValidIdentifiers.td new file mode 100644 index 0000000000..899ae0e386 --- /dev/null +++ b/test/TableGen/ValidIdentifiers.td @@ -0,0 +1,13 @@ +// Ensure that anonymous names are valid identifiers via the ctags index +// RUN: llvm-tblgen -gen-ctags %s | grep -v '^!' | not grep -viE '^[a-z_][a-z0-9_]*\t' +// Test validation +// RUN: llvm-tblgen -gen-ctags %s | grep '^anonymous' > /dev/null +// XFAIL: vg_leak + +class foo<int X> { int THEVAL = X; } + +def : foo<2>; + +def X { + foo Y = foo<1>; +} |