ref: bf0048dd143ca9fcd3ba58b6e3c380e8a7e30726
dir: /cc1/tests/test053.c/
/*
name: TEST053
description: Basic test for initializer
error:
output:
S2 "S #N4 #N1
M3 I "a #N0
M4 I "b #N2
G5 S2 "s (
#I1
#I2
)
G7 I F "main
{
\
y L8 G5 M3 .I #I1 =I
h #I1
L8
y L9 G5 M4 .I #I2 =I
h #I2
L9
h #I0
}
*/
struct S {int a; int b;};
struct S s = { .b = 2, .a = 1};
int
main()
{
if(s.a != 1)
return 1;
if(s.b != 2)
return 2;
return 0;
}