mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
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:
parent
a36e6c8cd5
commit
1c1f558695
5
test/CBackend/2002-05-16-NameCollide.ll
Normal file
5
test/CBackend/2002-05-16-NameCollide.ll
Normal 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
22
test/CBackend/Makefile
Normal 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 > $@
|
5
test/CodeGen/CBackend/2002-05-16-NameCollide.ll
Normal file
5
test/CodeGen/CBackend/2002-05-16-NameCollide.ll
Normal 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
|
Loading…
x
Reference in New Issue
Block a user