summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2010-06-11-SaveExpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2010-06-11-SaveExpr.c')
-rw-r--r--clang/test/CodeGen/2010-06-11-SaveExpr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2010-06-11-SaveExpr.c b/clang/test/CodeGen/2010-06-11-SaveExpr.c
new file mode 100644
index 0000000..bfe0f35
--- /dev/null
+++ b/clang/test/CodeGen/2010-06-11-SaveExpr.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -emit-llvm %s -o -
+// Test case by Eric Postpischil!
+void foo(void)
+{
+ char a[1];
+ int t = 1;
+ ((char (*)[t]) a)[0][0] = 0;
+}