1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test/TableGen/ValidIdentifiers.td

17 lines
340 B
TableGen
Raw Normal View History

2013-12-22 04:43:58 +01:00
// RUN: llvm-tblgen -gen-ctags %s | FileCheck %s
// XFAIL: vg_leak
2013-12-22 04:43:58 +01:00
// Ensure that generated names for anonymous records are valid identifiers via the ctags index.
class foo<int X> { int THEVAL = X; }
2013-12-22 04:43:58 +01:00
// CHECK: {{^X }}
def : foo<2>;
2013-12-22 04:43:58 +01:00
// CHECK: {{^anonymous_0 }}
def X {
foo Y = foo<1>;
}
2013-12-22 04:43:58 +01:00
// CHECK: {{^anonymous_1 }}
// CHECK: {{^foo }}