From 009b1c42aa6266385f2c37e227516b24077e6dd7 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jun 2009 17:52:33 +0000 Subject: Import LLVM, at r72732. --- test/TableGen/lisp.td | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/TableGen/lisp.td (limited to 'test/TableGen/lisp.td') diff --git a/test/TableGen/lisp.td b/test/TableGen/lisp.td new file mode 100644 index 0000000000000..3e392fda84ff3 --- /dev/null +++ b/test/TableGen/lisp.td @@ -0,0 +1,21 @@ +// RUN: tblgen %s | grep {} + +class List n> { + list names = n; +} + +class CAR { + string element = e; +} + +class CDR r, int n> { + list rest = r; + int null = n; +} + +class NameList Names> : + List, CAR, CDR; + +def Three : NameList<["Tom", "Dick", "Harry"]>; + +def One : NameList<["Jeffrey Sinclair"]>; -- cgit v1.2.3