aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/compound-literal00.c
blob: f3069d2ca5e9595482ca832402465a2ad3a1b2e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct bfs {
        int a: 2;
        int b: 30;
};

int foo(void)
{
        return (struct bfs){ .a = 1, .b = 2}.b;
}

/*
 * check-name: compound-literal00.c
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-contains: ret\\..*\\$2
 * check-error-end
 */