llvm-project/llvm/test/TableGen/ValidIdentifiers.td

17 lines
340 B
TableGen
Raw Normal View History

2013-12-22 11:43:58 +08:00
// RUN: llvm-tblgen -gen-ctags %s | FileCheck %s
// XFAIL: vg_leak
2013-12-22 11:43:58 +08: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 11:43:58 +08:00
// CHECK: {{^X }}
def : foo<2>;
2013-12-22 11:43:58 +08:00
// CHECK: {{^anonymous_0 }}
def X {
foo Y = foo<1>;
}
2013-12-22 11:43:58 +08:00
// CHECK: {{^anonymous_1 }}
// CHECK: {{^foo }}