mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
d250eb06d4
llvm-svn: 197872
17 lines
340 B
TableGen
17 lines
340 B
TableGen
// 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 }}
|