[llvm-commits] [llvm] r70375 - /llvm/trunk/test/FrontendC/2009-04-28-UnionArrayCrash.c

Chris Lattner sabre at nondot.org
Tue Apr 28 23:46:32 PDT 2009


Author: lattner
Date: Wed Apr 29 01:46:27 2009
New Revision: 70375

URL: http://llvm.org/viewvc/llvm-project?rev=70375&view=rev
Log:
testcase for PR4082

Added:
    llvm/trunk/test/FrontendC/2009-04-28-UnionArrayCrash.c

Added: llvm/trunk/test/FrontendC/2009-04-28-UnionArrayCrash.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2009-04-28-UnionArrayCrash.c?rev=70375&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC/2009-04-28-UnionArrayCrash.c (added)
+++ llvm/trunk/test/FrontendC/2009-04-28-UnionArrayCrash.c Wed Apr 29 01:46:27 2009
@@ -0,0 +1,11 @@
+// RUN: %llvmgcc -S %s -o - 
+// PR4082
+union U {
+  int I;
+  double F;
+};
+
+union U arr[] = { { .I = 4 }, { .F = 123.} };
+union U *P = &arr[0];
+
+





More information about the llvm-commits mailing list