Mercurial > hg > CbC > CbC_llvm
annotate llvm/test/TableGen/ValidIdentifiers.td @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
rev | line source |
---|---|
150 | 1 // RUN: llvm-tblgen -gen-ctags %s | FileCheck %s |
2 // XFAIL: vg_leak | |
3 | |
4 // Ensure that generated names for anonymous records are valid identifiers via the ctags index. | |
5 | |
6 class foo<int X> { int THEVAL = X; } | |
7 // CHECK: {{^X }} | |
8 | |
9 def : foo<2>; | |
10 // CHECK: {{^anonymous_0 }} | |
11 | |
12 def X { | |
13 foo Y = foo<1>; | |
14 } | |
15 // CHECK: {{^anonymous_1 }} | |
16 // CHECK: {{^foo }} |