Initial tests for tblgen
authorChris Lattner <sabre@nondot.org>
Wed, 30 Jul 2003 19:40:00 +0000 (19:40 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 30 Jul 2003 19:40:00 +0000 (19:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7430 91177308-0d34-0410-b5e6-96231b3b80d8

test/TableGen/CStyleComment.td [new file with mode: 0644]
test/TableGen/Makefile [new file with mode: 0644]
test/TableGen/UnterminatedComment.td [new file with mode: 0644]

diff --git a/test/TableGen/CStyleComment.td b/test/TableGen/CStyleComment.td
new file mode 100644 (file)
index 0000000..703ae68
--- /dev/null
@@ -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 (file)
index 0000000..c254d80
--- /dev/null
@@ -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 (file)
index 0000000..7f449c4
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: not tblgen < %s
+
+def x;
+
+/*  /* /* */
+