diff options
-rw-r--r-- | test/CFrontend/2003-07-22-ArrayAccessTypeSafety.c.tr | 7 | ||||
-rw-r--r-- | test/CFrontend/Makefile | 5 |
2 files changed, 12 insertions, 0 deletions
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 0000000000..7024ff7727 --- /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 c70aed021b..b1017e2f17 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) $< |