mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
new testcase for a tblgen bug that alkis ran into
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11947 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff367ee1c5
commit
7b6ee7d8f1
20
test/TableGen/SuperSubclassSameName.td
Normal file
20
test/TableGen/SuperSubclassSameName.td
Normal file
@ -0,0 +1,20 @@
|
||||
// RUN: tblgen < %s
|
||||
// Test for template arguments that have the same name as superclass template
|
||||
// arguments.
|
||||
|
||||
|
||||
class Arg { int a; }
|
||||
class TheArg : Arg { let a = 1; }
|
||||
|
||||
|
||||
class Super<Arg F> {
|
||||
int X = F.a;
|
||||
}
|
||||
class Sub<Arg F> : Super<F>;
|
||||
def inst : Sub<TheArg>;
|
||||
|
||||
|
||||
class Super2<int F> {
|
||||
int X = F;
|
||||
}
|
||||
class Sub2<int F> : Super2<F>;
|
Loading…
Reference in New Issue
Block a user