diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-22 16:18:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-22 16:18:09 +0000 |
commit | 35611c3a6bcb7cf143892d77d4c37a89868b8e62 (patch) | |
tree | d51389a374c7d834276af9e4e692c3d3a2e51edd /test/CFrontend | |
parent | df3ac860e8e2c91d1322c828cc650f28660a9d61 (diff) | |
download | llvm-35611c3a6bcb7cf143892d77d4c37a89868b8e62.tar.gz llvm-35611c3a6bcb7cf143892d77d4c37a89868b8e62.tar.bz2 llvm-35611c3a6bcb7cf143892d77d4c37a89868b8e62.tar.xz |
Add new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-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) $< |