FileCheckize r197869
authorAlp Toker <alp@nuanti.com>
Sun, 22 Dec 2013 03:43:58 +0000 (03:43 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 22 Dec 2013 03:43:58 +0000 (03:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197872 91177308-0d34-0410-b5e6-96231b3b80d8

test/TableGen/ValidIdentifiers.td

index 039d887cf3ee86128a713f18a5d1dd06408939c4..333ede0c62bc62a9d6df7b3962aef25be39a6e46 100644 (file)
@@ -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 }}