ref: 3801b0918d1ba3107283cb6087a9a158c33d545b
dir: /cc1/tests/test053.c/
/* See LICENSE file for copyright and license details. */ /* 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; }