xref: /llvm-project/clang/test/CodeGen/2003-08-30-AggregateInitializer.c (revision 85e5156598b1bbad0ae41cf4d0d5b845dd655ffd)
1*85e51565SEric Christopher // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2*85e51565SEric Christopher 
3*85e51565SEric Christopher struct istruct {
4*85e51565SEric Christopher   unsigned char C;
5*85e51565SEric Christopher };
6*85e51565SEric Christopher 
7*85e51565SEric Christopher struct foo {
8*85e51565SEric Christopher   unsigned int I:1;
9*85e51565SEric Christopher   struct istruct J;
10*85e51565SEric Christopher   unsigned char L[1];
11*85e51565SEric Christopher   unsigned int K:1;
12*85e51565SEric Christopher };
13*85e51565SEric Christopher 
14*85e51565SEric Christopher struct foo F = { 1, { 7 }, { 123 } , 1 };
15*85e51565SEric Christopher 
16*85e51565SEric Christopher 
17