New testcase for PR1744
authorChris Lattner <sabre@nondot.org>
Wed, 28 Nov 2007 22:43:34 +0000 (22:43 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 28 Nov 2007 22:43:34 +0000 (22:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44418 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2007-11-28-GlobalInitializer.c [new file with mode: 0644]

diff --git a/test/CFrontend/2007-11-28-GlobalInitializer.c b/test/CFrontend/2007-11-28-GlobalInitializer.c
new file mode 100644 (file)
index 0000000..c8c7a59
--- /dev/null
@@ -0,0 +1,8 @@
+// RUN: %llvmgcc -S %s -o - 
+// PR1744
+typedef struct foo { int x; char *p; } FOO;
+extern FOO yy[];
+
+int *y = &((yy + 1)->x);
+void *z = &((yy + 1)->x);
+