From: Chris Lattner Date: Sat, 28 Feb 2004 16:43:44 +0000 (+0000) Subject: new testcase for a tblgen bug that alkis ran into X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7b6ee7d8f128d005f448a9b70714ed6fefea93a9;p=oota-llvm.git 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 --- diff --git a/test/TableGen/SuperSubclassSameName.td b/test/TableGen/SuperSubclassSameName.td new file mode 100644 index 00000000000..ded84de6954 --- /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 { + int X = F.a; +} +class Sub : Super; +def inst : Sub; + + +class Super2 { + int X = F; +} +class Sub2 : Super2;