From cf048d4e59bc7641330675755fae18030cdddb0e Mon Sep 17 00:00:00 2001 From: David Greene Date: Mon, 29 Jun 2009 20:07:17 +0000 Subject: [PATCH] Add some tests of advanced TableGen list functionality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74445 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/TableGen/ListArgs.td | 11 +++++++++++ test/TableGen/ListArgsSimple.td | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 test/TableGen/ListArgs.td create mode 100644 test/TableGen/ListArgsSimple.td diff --git a/test/TableGen/ListArgs.td b/test/TableGen/ListArgs.td new file mode 100644 index 00000000000..daa0de66bed --- /dev/null +++ b/test/TableGen/ListArgs.td @@ -0,0 +1,11 @@ +// RUN: tblgen %s + +class B v> { + list vals = v; +} + +class BB> vals> : B; +class BBB> vals> : BB; + +def OneB : BBB<[[1,2,3]]>; +def TwoB : BBB<[[1,2,3],[4,5,6]]>; diff --git a/test/TableGen/ListArgsSimple.td b/test/TableGen/ListArgsSimple.td new file mode 100644 index 00000000000..b3b207825e8 --- /dev/null +++ b/test/TableGen/ListArgsSimple.td @@ -0,0 +1,8 @@ +// RUN: tblgen %s + +class B { + int val = v; +} + +class BB vals> : B; +class BBB vals> : BB;