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