From 7b6ee7d8f128d005f448a9b70714ed6fefea93a9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 28 Feb 2004 16:43:44 +0000 Subject: [PATCH] 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 --- test/TableGen/SuperSubclassSameName.td | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/TableGen/SuperSubclassSameName.td 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; -- 2.34.1