[cfe-commits] r149066 - /cfe/trunk/test/CodeGen/override-layout.c

Douglas Gregor dgregor at apple.com
Thu Jan 26 09:23:00 PST 2012


Author: dgregor
Date: Thu Jan 26 11:23:00 2012
New Revision: 149066

URL: http://llvm.org/viewvc/llvm-project?rev=149066&view=rev
Log:
Force layout of more of the unions and structures in this test

Modified:
    cfe/trunk/test/CodeGen/override-layout.c

Modified: cfe/trunk/test/CodeGen/override-layout.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/override-layout.c?rev=149066&r1=149065&r2=149066&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/override-layout.c (original)
+++ cfe/trunk/test/CodeGen/override-layout.c Thu Jan 26 11:23:00 2012
@@ -52,7 +52,7 @@
 struct PACKED X6 { long double a; char b; };
 
 // CHECK: Type: struct X7
-typedef struct X7 {
+struct X7 {
         unsigned x;
         unsigned char y;
 } PACKED;
@@ -137,17 +137,23 @@
 
   struct X7 x7;
   x7.x = sizeof(struct X7);
+  x7.y = x7.x;
 
   union X8 x8;
+  typedef int X8array[sizeof(union X8)];
   x8.y = sizeof(union X8);
+  x8.x.x = x8.y;
 
   struct X9 x9;
+  typedef int X9array[sizeof(struct X9)];
   x9.y = sizeof(struct X9);
 
   struct X10 x10;
+  typedef int X10array[sizeof(struct X10)];
   x10.y = sizeof(struct X10);
 
   struct X11 x11;
+  typedef int X11array[sizeof(struct X11)];
   x11.y = sizeof(struct X11);
 
   struct X12 x12;





More information about the cfe-commits mailing list