xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/2010-06-22-BitfieldInit.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -g %s -o -
2*f4a2713aSLionel Sambuc struct TEST2
3*f4a2713aSLionel Sambuc {
4*f4a2713aSLionel Sambuc   int subid:32;
5*f4a2713aSLionel Sambuc   int :0;
6*f4a2713aSLionel Sambuc };
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc typedef struct _TEST3
9*f4a2713aSLionel Sambuc {
10*f4a2713aSLionel Sambuc   TEST2 foo;
11*f4a2713aSLionel Sambuc   TEST2 foo2;
12*f4a2713aSLionel Sambuc } TEST3;
13*f4a2713aSLionel Sambuc 
14*f4a2713aSLionel Sambuc TEST3 test =
15*f4a2713aSLionel Sambuc   {
16*f4a2713aSLionel Sambuc     {0},
17*f4a2713aSLionel Sambuc     {0}
18*f4a2713aSLionel Sambuc   };
19*f4a2713aSLionel Sambuc 
main()20*f4a2713aSLionel Sambuc int main() { return 0; }
21