mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 18:37:17 +00:00
eb7d6d016e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11949 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
330 B
TableGen
21 lines
330 B
TableGen
// RUN: tblgen < %s
|
|
// Test for template arguments that have the same name as superclass template
|
|
// arguments.
|
|
|
|
|
|
class Arg { int a; }
|
|
def 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>;
|