diff options
author | Alp Toker <alp@nuanti.com> | 2013-12-22 03:43:58 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2013-12-22 03:43:58 +0000 |
commit | 4b5724b864ea9e2effbcad094675dc679a936ef8 (patch) | |
tree | 8a750d044e1c6bb0eb7ae6e2246b870246864c79 /test/TableGen | |
parent | 68545899c7c5f426131d81028d1bbe75f8366ede (diff) | |
download | llvm-4b5724b864ea9e2effbcad094675dc679a936ef8.tar.gz llvm-4b5724b864ea9e2effbcad094675dc679a936ef8.tar.bz2 llvm-4b5724b864ea9e2effbcad094675dc679a936ef8.tar.xz |
FileCheckize r197869
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen')
-rw-r--r-- | test/TableGen/ValidIdentifiers.td | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/TableGen/ValidIdentifiers.td b/test/TableGen/ValidIdentifiers.td index 039d887cf3..333ede0c62 100644 --- a/test/TableGen/ValidIdentifiers.td +++ b/test/TableGen/ValidIdentifiers.td @@ -1,13 +1,16 @@ -// 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_]*\s' -// Test validation -// RUN: llvm-tblgen -gen-ctags %s | grep '^anonymous' > /dev/null +// RUN: llvm-tblgen -gen-ctags %s | FileCheck %s // XFAIL: vg_leak +// Ensure that generated names for anonymous records are valid identifiers via the ctags index. + class foo<int X> { int THEVAL = X; } +// CHECK: {{^X }} def : foo<2>; +// CHECK: {{^anonymous_0 }} def X { foo Y = foo<1>; } +// CHECK: {{^anonymous_1 }} +// CHECK: {{^foo }} |