blob: 6ed5809eb83ab7c22f8a3382ea41a1dd79ecaacf [file] [log] [blame]
struct bfs {
int a: 2;
int b: 30;
};
int bar(void)
{
struct bfs bf = { .a = 1, .b = 4 };
return (struct bfs[]){bf, { .a = 3, .b = 6}}[1].b;
}
/*
* check-name: compound-literal02.c
* check-command: test-linearize -Wno-decl $file
*
* check-output-ignore
* check-output-contains: ret\\..*\\$6
*/