mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Initial tests for tblgen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7430 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d33b8db415
commit
35c7444e52
14
test/TableGen/CStyleComment.td
Normal file
14
test/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/TableGen/Makefile
Normal file
10
test/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/TableGen/UnterminatedComment.td
Normal file
6
test/TableGen/UnterminatedComment.td
Normal file
@ -0,0 +1,6 @@
|
||||
// RUN: not tblgen < %s
|
||||
|
||||
def x;
|
||||
|
||||
/* /* /* */
|
||||
|
Loading…
x
Reference in New Issue
Block a user