mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-04 23:32:00 +00:00
Add new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7229 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df3ac860e8
commit
35611c3a6b
7
test/CFrontend/2003-07-22-ArrayAccessTypeSafety.c.tr
Normal file
7
test/CFrontend/2003-07-22-ArrayAccessTypeSafety.c.tr
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/* RUN: llvmgcc -xc %s -c -o - | dis | not grep cast
|
||||||
|
*/
|
||||||
|
|
||||||
|
void test(int* array, long long N) {
|
||||||
|
array[N] = 33;
|
||||||
|
}
|
||||||
|
|
@ -11,5 +11,10 @@ LEVEL = ../../..
|
|||||||
include $(LEVEL)/test/Makefile.tests
|
include $(LEVEL)/test/Makefile.tests
|
||||||
|
|
||||||
TESTS := $(wildcard *.c)
|
TESTS := $(wildcard *.c)
|
||||||
|
TR_TESTS := $(wildcard *.c.tr)
|
||||||
|
|
||||||
all:: $(addprefix Output/, $(TESTS:%.c=%.tbc))
|
all:: $(addprefix Output/, $(TESTS:%.c=%.tbc))
|
||||||
|
all:: $(addprefix Output/, $(TR_TESTS:%=%.out))
|
||||||
|
|
||||||
|
Output/%.c.tr.out: %.c.tr Output/.dir $(LCC1)
|
||||||
|
-$(TESTRUNR) $<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user