[cfe-commits] r138089 - /cfe/trunk/test/CodeGenCXX/2009-10-27-crash.cpp
Eric Christopher
echristo at apple.com
Fri Aug 19 14:24:39 PDT 2011
Author: echristo
Date: Fri Aug 19 16:24:39 2011
New Revision: 138089
URL: http://llvm.org/viewvc/llvm-project?rev=138089&view=rev
Log:
Migrate 2009-10-27-crash.cpp from llvm/test/FrontendC++.
Added:
cfe/trunk/test/CodeGenCXX/2009-10-27-crash.cpp
Added: cfe/trunk/test/CodeGenCXX/2009-10-27-crash.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2009-10-27-crash.cpp?rev=138089&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2009-10-27-crash.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/2009-10-27-crash.cpp Fri Aug 19 16:24:39 2011
@@ -0,0 +1,43 @@
+// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
+// Radar 7328944
+
+typedef struct
+{
+ unsigned short a : 1;
+ unsigned short b : 2;
+ unsigned short c : 1;
+ unsigned short d : 1;
+ unsigned short e : 1;
+ unsigned short f : 1;
+ unsigned short g : 2;
+ unsigned short : 7;
+ union
+ {
+ struct
+ {
+ unsigned char h : 1;
+ unsigned char i : 1;
+ unsigned char j : 1;
+ unsigned char : 5;
+ };
+ struct
+ {
+ unsigned char k : 3;
+ unsigned char : 5;
+ };
+ };
+ unsigned char : 8;
+} tt;
+
+typedef struct
+{
+ unsigned char s;
+ tt t;
+ unsigned int u;
+} ttt;
+
+ttt X = {
+ 4,
+ { 0 },
+ 55,
+};
More information about the cfe-commits
mailing list