New C backend testcases with first testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2638 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-05-17 04:53:52 +00:00
parent a36e6c8cd5
commit 1c1f558695
3 changed files with 32 additions and 0 deletions

View File

@ -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

22
test/CBackend/Makefile Normal file
View File

@ -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 > $@

View File

@ -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