Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
      2 // Radar 7328944
      3 
      4 typedef struct
      5 {
      6 	unsigned short a : 1;
      7 	unsigned short b : 2;
      8 	unsigned short c : 1;
      9 	unsigned short d : 1;
     10 	unsigned short e : 1;
     11 	unsigned short f : 1;
     12 	unsigned short g : 2;
     13 	unsigned short : 7;
     14 	union
     15 	{
     16 		struct
     17 		{
     18 			unsigned char h : 1;
     19 			unsigned char i : 1;
     20 			unsigned char j : 1;
     21 			unsigned char : 5;
     22 		};
     23 		struct
     24 		{
     25 			unsigned char k : 3;
     26 			unsigned char : 5;
     27 		};
     28 	};
     29 	unsigned char : 8;
     30 } tt;
     31 
     32 typedef struct
     33 {
     34  unsigned char s;
     35  tt t;
     36  unsigned int u;
     37 } ttt;
     38 
     39 ttt X = {
     40     4,
     41        { 0 },
     42 	55,
     43 };
     44