diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-28 16:43:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-28 16:43:44 +0000 |
commit | 7b6ee7d8f128d005f448a9b70714ed6fefea93a9 (patch) | |
tree | 035b57286dbd52f15c8cf037bc40f00ee5d6f23b /test/TableGen/SuperSubclassSameName.td | |
parent | ff367ee1c5977299c57343f93a31c7d40b5ede5d (diff) | |
download | external_llvm-7b6ee7d8f128d005f448a9b70714ed6fefea93a9.zip external_llvm-7b6ee7d8f128d005f448a9b70714ed6fefea93a9.tar.gz external_llvm-7b6ee7d8f128d005f448a9b70714ed6fefea93a9.tar.bz2 |
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
Diffstat (limited to 'test/TableGen/SuperSubclassSameName.td')
-rw-r--r-- | test/TableGen/SuperSubclassSameName.td | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/TableGen/SuperSubclassSameName.td b/test/TableGen/SuperSubclassSameName.td new file mode 100644 index 0000000..ded84de --- /dev/null +++ b/test/TableGen/SuperSubclassSameName.td @@ -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>; |