Test case for Radar 8004649.
authorStuart Hastings <stuart@apple.com>
Mon, 14 Jun 2010 18:37:04 +0000 (18:37 +0000)
committerStuart Hastings <stuart@apple.com>
Mon, 14 Jun 2010 18:37:04 +0000 (18:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105949 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC/2010-06-11-SaveExpr.c [new file with mode: 0644]

diff --git a/test/FrontendC/2010-06-11-SaveExpr.c b/test/FrontendC/2010-06-11-SaveExpr.c
new file mode 100644 (file)
index 0000000..d1c122d
--- /dev/null
@@ -0,0 +1,8 @@
+// RUN: %llvmgcc -S %s
+// Test case by Eric Postpischil!
+void foo(void)
+{
+  char a[1];
+  int t = 1;
+  ((char (*)[t]) a)[0][0] = 0;
+}