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