xref: /illumos-gate/usr/src/tools/smatch/src/validation/linear/compound-literal01.c (revision 58e78d166bd2b5a9dda31250b8e8bad7c7548c0e)
1 struct bfs {
2         int a: 2;
3         int b: 30;
4 };
5 
6 int foo(void)
7 {
8         struct bfs bf = { .a = 1, .b = 2 };
9         return (struct bfs[]){bf}[0].b;
10 }
11 
12 /*
13  * check-name: compound-literal01.c
14  * check-command: test-linearize -Wno-decl $file
15  *
16  * check-output-ignore
17  * check-output-contains: ret\\..*\\$2
18  */
19