blob: 333ede0c62bc62a9d6df7b3962aef25be39a6e46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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 }}
|