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