aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2003-07-22-ArrayAccessTypeSafety.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2003-07-22-ArrayAccessTypeSafety.c')
-rw-r--r--test/FrontendC/2003-07-22-ArrayAccessTypeSafety.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/FrontendC/2003-07-22-ArrayAccessTypeSafety.c b/test/FrontendC/2003-07-22-ArrayAccessTypeSafety.c
new file mode 100644
index 0000000..51e66c9
--- /dev/null
+++ b/test/FrontendC/2003-07-22-ArrayAccessTypeSafety.c
@@ -0,0 +1,7 @@
+/* RUN: %llvmgcc -xc %s -S -o - | grep -v alloca | not grep bitcast
+ */
+
+void test(int* array, long long N) {
+ array[N] = N[array] = 33;
+}
+