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