mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
FileCheckize r197869
llvm-svn: 197872
This commit is contained in:
parent
906b224d45
commit
d250eb06d4
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user