llvm.org GIT mirror llvm / 4b5724b
FileCheckize r197869 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197872 91177308-0d34-0410-b5e6-96231b3b80d8 Alp Toker 5 years ago
1 changed file(s) with 7 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
None // Ensure that anonymous names are valid identifiers via the ctags index
1 // RUN: llvm-tblgen -gen-ctags %s | grep -v '^!' | not grep -viE '^[a-z_][a-z0-9_]*\s'
2 // Test validation
3 // RUN: llvm-tblgen -gen-ctags %s | grep '^anonymous' > /dev/null
0 // RUN: llvm-tblgen -gen-ctags %s | FileCheck %s
41 // XFAIL: vg_leak
52
3 // Ensure that generated names for anonymous records are valid identifiers via the ctags index.
4
65 class foo { int THEVAL = X; }
6 // CHECK: {{^X }}
77
88 def : foo<2>;
9 // CHECK: {{^anonymous_0 }}
910
1011 def X {
1112 foo Y = foo<1>;
1213 }
14 // CHECK: {{^anonymous_1 }}
15 // CHECK: {{^foo }}