mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-06-26 10:29:57 +00:00
FileCheckize r197869
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197872 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68545899c7
commit
4b5724b864
|
@ -1,13 +1,16 @@
|
||||||
// Ensure that anonymous names are valid identifiers via the ctags index
|
// RUN: llvm-tblgen -gen-ctags %s | FileCheck %s
|
||||||
// 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
|
|
||||||
// XFAIL: vg_leak
|
// XFAIL: vg_leak
|
||||||
|
|
||||||
|
// Ensure that generated names for anonymous records are valid identifiers via the ctags index.
|
||||||
|
|
||||||
class foo<int X> { int THEVAL = X; }
|
class foo<int X> { int THEVAL = X; }
|
||||||
|
// CHECK: {{^X }}
|
||||||
|
|
||||||
def : foo<2>;
|
def : foo<2>;
|
||||||
|
// CHECK: {{^anonymous_0 }}
|
||||||
|
|
||||||
def X {
|
def X {
|
||||||
foo Y = foo<1>;
|
foo Y = foo<1>;
|
||||||
}
|
}
|
||||||
|
// CHECK: {{^anonymous_1 }}
|
||||||
|
// CHECK: {{^foo }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user