X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=parsetest%2Fcp_error033.c;h=093c28bc3a4a4475ecdcd21a2017125579e5a996;hb=f0acd842a34d249ac78dfbb2c2168695c466693e;hp=a8765351641091738d1df7ccf3b5f5a3eb04683d;hpb=b802fbadbfd36d12c7e8cf819b94dd48aa929029;p=cparser diff --git a/parsetest/cp_error033.c b/parsetest/cp_error033.c index a876535..093c28b 100644 --- a/parsetest/cp_error033.c +++ b/parsetest/cp_error033.c @@ -2,18 +2,17 @@ struct A { int a, b; }; -static struct A -deduce_conversion(int from, int to) +static struct A deduce_conversion(int from, int to) { struct A result = { 1, 2 }; return result; } -struct A globa[4]; -int x = 1; +struct A globa_real; +struct A *globa = &globa_real; int main(int argc, char **argv) { - globa[x] = deduce_conversion(1, 2); + *globa = deduce_conversion(1, 2); return 0; }