repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add and use DominatorTreeBase::findNearestCommonDominator().
[llvm-complete.git]
/
test
/
TableGen
/
SuperSubclassSameName.td
blob
087df87124bfb9badcf73d00198de084dbab73ea
1
// RUN: tblgen < %s
2
// Test for template arguments that have the same name as superclass template
3
// arguments.
4
5
6
class Arg { int a; }
7
def TheArg : Arg { let a = 1; }
8
9
10
class Super<Arg F> {
11
int X = F.a;
12
}
13
class Sub<Arg F> : Super<F>;
14
def inst : Sub<TheArg>;
15
16
17
class Super2<int F> {
18
int X = F;
19
}
20
class Sub2<int F> : Super2<F>;