diff --git a/test/CFrontend/2003-07-22-ArrayAccessTypeSafety.c.tr b/test/CFrontend/2003-07-22-ArrayAccessTypeSafety.c.tr new file mode 100644 index 00000000000..7024ff7727e --- /dev/null +++ b/test/CFrontend/2003-07-22-ArrayAccessTypeSafety.c.tr @@ -0,0 +1,7 @@ +/* RUN: llvmgcc -xc %s -c -o - | dis | not grep cast + */ + +void test(int* array, long long N) { + array[N] = 33; +} + diff --git a/test/CFrontend/Makefile b/test/CFrontend/Makefile index c70aed021b4..b1017e2f179 100644 --- a/test/CFrontend/Makefile +++ b/test/CFrontend/Makefile @@ -11,5 +11,10 @@ LEVEL = ../../.. include $(LEVEL)/test/Makefile.tests TESTS := $(wildcard *.c) +TR_TESTS := $(wildcard *.c.tr) all:: $(addprefix Output/, $(TESTS:%.c=%.tbc)) +all:: $(addprefix Output/, $(TR_TESTS:%=%.out)) + +Output/%.c.tr.out: %.c.tr Output/.dir $(LCC1) + -$(TESTRUNR) $<