Mercurial > hg > CbC > CbC_llvm
annotate llvm/test/TableGen/SuperSubclassSameName.td @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: llvm-tblgen < %s |
2 // XFAIL: vg_leak | |
3 // Test for template arguments that have the same name as superclass template | |
4 // arguments. | |
5 | |
6 | |
7 class Arg { int a; } | |
8 def TheArg : Arg { let a = 1; } | |
9 | |
10 | |
11 class Super<Arg F> { | |
12 int X = F.a; | |
13 } | |
14 class Sub<Arg F> : Super<F>; | |
15 def inst : Sub<TheArg>; | |
16 | |
17 | |
18 class Super2<int F> { | |
19 int X = F; | |
20 } | |
21 class Sub2<int F> : Super2<F>; |