diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-05-17 04:53:52 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-05-17 04:53:52 +0000 | 
| commit | ee451dea689605e31c928d584360d44935a8ea3d (patch) | |
| tree | c1c577c673178911a09d7da2f8ba97a504f73d56 | |
| parent | 7bc532dded27a08f33895189912e79da989020ca (diff) | |
| download | bcm5719-llvm-ee451dea689605e31c928d584360d44935a8ea3d.tar.gz bcm5719-llvm-ee451dea689605e31c928d584360d44935a8ea3d.zip | |
New C backend testcases with first testcase
llvm-svn: 2638
| -rw-r--r-- | llvm/test/Regression/CBackend/2002-05-16-NameCollide.ll | 5 | ||||
| -rw-r--r-- | llvm/test/Regression/CBackend/Makefile | 22 | 
2 files changed, 27 insertions, 0 deletions
| diff --git a/llvm/test/Regression/CBackend/2002-05-16-NameCollide.ll b/llvm/test/Regression/CBackend/2002-05-16-NameCollide.ll new file mode 100644 index 00000000000..c08024bbec4 --- /dev/null +++ b/llvm/test/Regression/CBackend/2002-05-16-NameCollide.ll @@ -0,0 +1,5 @@ +; Make sure that global variables do not collide if they have the same name, +; but different types. + +%X = global int 5 +%X = global long 7 diff --git a/llvm/test/Regression/CBackend/Makefile b/llvm/test/Regression/CBackend/Makefile new file mode 100644 index 00000000000..27a3588bf96 --- /dev/null +++ b/llvm/test/Regression/CBackend/Makefile @@ -0,0 +1,22 @@ +#                    test/Regression/CBackend/Makefile +# +# This directory contains regression tests for the C backend for LLVM.   +# These testcases are assembled with the LLVM assembler, then disassembled into +# C code.  The C code should be compilable with the standard C compiler. +# +LEVEL = ../../.. +include $(LEVEL)/test/Makefile.tests + +.PRECIOUS: Output/%.c + +TESTS := $(wildcard *.ll) + +all:: $(addprefix Output/, $(TESTS:%.ll=%.to)) + + +Output/%.to: Output/%.c +	gcc -c $< -o $@ || \ +		(rm -f $@; $(FAILURE) $@ ) + +Output/%.c: %.ll Output/.dir $(LAS) $(LDIS) +	$(LAS) < $< | $(LDIS) -c > $@ | 

