1*c85f09ccSJohn Levon struct bfs { 2*c85f09ccSJohn Levon int a: 2; 3*c85f09ccSJohn Levon int b: 30; 4*c85f09ccSJohn Levon }; 5*c85f09ccSJohn Levon bar(void)6*c85f09ccSJohn Levonint bar(void) 7*c85f09ccSJohn Levon { 8*c85f09ccSJohn Levon struct bfs bf = { .a = 1, .b = 4 }; 9*c85f09ccSJohn Levon return (struct bfs[]){bf, { .a = 3, .b = 6}}[1].b; 10*c85f09ccSJohn Levon } 11*c85f09ccSJohn Levon 12*c85f09ccSJohn Levon /* 13*c85f09ccSJohn Levon * check-name: compound-literal02.c 14*c85f09ccSJohn Levon * check-command: test-linearize -Wno-decl $file 15*c85f09ccSJohn Levon * 16*c85f09ccSJohn Levon * check-known-to-fail 17*c85f09ccSJohn Levon * check-output-ignore 18*c85f09ccSJohn Levon * check-output-contains: ret\\..*\\$6 19*c85f09ccSJohn Levon */ 20