summaryrefslogtreecommitdiff
path: root/test/TableGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-30 19:40:00 +0000
committerChris Lattner <sabre@nondot.org>2003-07-30 19:40:00 +0000
commit35c7444e52efaeae5d9cc1024350edb25dae5447 (patch)
tree4b2acf00f8727340b185c1db5aab9d9d06a0374f /test/TableGen
parentd33b8db415f2f6a8aa0a830a3f5186c1826d66cc (diff)
Initial tests for tblgen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen')
-rw-r--r--test/TableGen/CStyleComment.td14
-rw-r--r--test/TableGen/Makefile10
-rw-r--r--test/TableGen/UnterminatedComment.td6
3 files changed, 30 insertions, 0 deletions
diff --git a/test/TableGen/CStyleComment.td b/test/TableGen/CStyleComment.td
new file mode 100644
index 00000000000..703ae6837eb
--- /dev/null
+++ b/test/TableGen/CStyleComment.td
@@ -0,0 +1,14 @@
+// Test that multiline, nested, comments work correctly.
+//
+// RUN: tblgen < %s
+
+/* Foo
+ bar
+ /*
+ blah
+ */
+
+ stuff
+ */
+
+def x;
diff --git a/test/TableGen/Makefile b/test/TableGen/Makefile
new file mode 100644
index 00000000000..c254d809bf8
--- /dev/null
+++ b/test/TableGen/Makefile
@@ -0,0 +1,10 @@
+
+LEVEL = ../../..
+include $(LEVEL)/test/Makefile.tests
+
+TESTS := $(wildcard *.td)
+
+all:: $(addprefix Output/, $(TESTS:%=%.out))
+
+Output/%.out: % Output/.dir $(TBLGEN)
+ -$(TESTRUNR) $<
diff --git a/test/TableGen/UnterminatedComment.td b/test/TableGen/UnterminatedComment.td
new file mode 100644
index 00000000000..7f449c4f8e5
--- /dev/null
+++ b/test/TableGen/UnterminatedComment.td
@@ -0,0 +1,6 @@
+// RUN: not tblgen < %s
+
+def x;
+
+/* /* /* */
+