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