mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Initial tests for tblgen
llvm-svn: 7430
This commit is contained in:
parent
5a67c69120
commit
05d010862c
14
test/Regression/TableGen/CStyleComment.td
Normal file
14
test/Regression/TableGen/CStyleComment.td
Normal file
@ -0,0 +1,14 @@
|
||||
// Test that multiline, nested, comments work correctly.
|
||||
//
|
||||
// RUN: tblgen < %s
|
||||
|
||||
/* Foo
|
||||
bar
|
||||
/*
|
||||
blah
|
||||
*/
|
||||
|
||||
stuff
|
||||
*/
|
||||
|
||||
def x;
|
10
test/Regression/TableGen/Makefile
Normal file
10
test/Regression/TableGen/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
LEVEL = ../../..
|
||||
include $(LEVEL)/test/Makefile.tests
|
||||
|
||||
TESTS := $(wildcard *.td)
|
||||
|
||||
all:: $(addprefix Output/, $(TESTS:%=%.out))
|
||||
|
||||
Output/%.out: % Output/.dir $(TBLGEN)
|
||||
-$(TESTRUNR) $<
|
6
test/Regression/TableGen/UnterminatedComment.td
Normal file
6
test/Regression/TableGen/UnterminatedComment.td
Normal file
@ -0,0 +1,6 @@
|
||||
// RUN: not tblgen < %s
|
||||
|
||||
def x;
|
||||
|
||||
/* /* /* */
|
||||
|
Loading…
Reference in New Issue
Block a user