X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=parsetest%2Finitializers.c;h=b32ea534ad88d9989eb8af5785b6a7d1403bd8aa;hb=90708018c33219ee4a3d64e0017677231c84d2ba;hp=7c473b0cc85d9d3933a8583b34e06debe4876f73;hpb=ae40d62f736098a12e3e31ab2d5cfb24f2467742;p=cparser diff --git a/parsetest/initializers.c b/parsetest/initializers.c index 7c473b0..b32ea53 100644 --- a/parsetest/initializers.c +++ b/parsetest/initializers.c @@ -22,18 +22,20 @@ struct foo { }; struct foo f1 = { 1, 2 }; -struct foo f2 = { { 1, }, 2 }; /* produces a warning on icc and gcc... */ +struct foo f2 = { { 1, + } + , 2 }; /* produces a warning on icc and gcc... */ struct foo f3 = { { { 1, } }, 2 }; /* produces a warning on icc and gcc... */ struct foob { int a; struct foobb { float c, d; - }; + } f; int e; }; -struct foob ff2 = { 1, 2.5, 4, 2 }; +struct foob ff2 = { 1, 2.5, 4.4, 2 }; union foou { int a; @@ -41,3 +43,7 @@ union foou { }; union foou g1 = { 5 }; + +int main() { + return 0; +}