[llvm-commits] [llvm] r44418 - /llvm/trunk/test/CFrontend/2007-11-28-GlobalInitializer.c

Chris Lattner sabre at nondot.org
Wed Nov 28 14:43:35 PST 2007


Author: lattner
Date: Wed Nov 28 16:43:34 2007
New Revision: 44418

URL: http://llvm.org/viewvc/llvm-project?rev=44418&view=rev
Log:
New testcase for PR1744


Added:
    llvm/trunk/test/CFrontend/2007-11-28-GlobalInitializer.c

Added: llvm/trunk/test/CFrontend/2007-11-28-GlobalInitializer.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2007-11-28-GlobalInitializer.c?rev=44418&view=auto

==============================================================================
--- llvm/trunk/test/CFrontend/2007-11-28-GlobalInitializer.c (added)
+++ llvm/trunk/test/CFrontend/2007-11-28-GlobalInitializer.c Wed Nov 28 16:43:34 2007
@@ -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);
+





More information about the llvm-commits mailing list