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