blob: 0a958633673a3c23210d0493dd6c0ca5894301d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
struct s {
int a:8;
int b:8;
};
int foo(void)
{
struct s x = { .a = 12, .b = 34, };
return x.b;
}
int bar(int a)
{
struct s x = { .a = 12, .b = a, };
return x.b;
}
/*
* check-name: bitfield expand deref
* check-command: test-linearize -Wno-decl $file
* check-known-to-fail
*
* check-output-ignore
* check-output-excludes: ret\..*\$12
* check-output-contains: ret\..*\$34
*/
|