aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/array.c')
-rw-r--r--test/CodeGen/array.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/array.c b/test/CodeGen/array.c
new file mode 100644
index 0000000000..dfbd10ddad
--- /dev/null
+++ b/test/CodeGen/array.c
@@ -0,0 +1,6 @@
+// RUN: clang -emit-llvm %s
+
+int f() {
+ int a[2];
+ a[0] = 0;
+}