X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=parsetest%2Fcp_error033.c;h=093c28bc3a4a4475ecdcd21a2017125579e5a996;hb=43298905d2d0a8eabe545794d056bbd7a104b9bf;hp=07e4e42f2caf517c34f7159af08d5f3a482b0366;hpb=79eaf97c33581720569f1ca23237a1cae62da2f2;p=cparser diff --git a/parsetest/cp_error033.c b/parsetest/cp_error033.c index 07e4e42..093c28b 100644 --- a/parsetest/cp_error033.c +++ b/parsetest/cp_error033.c @@ -1,23 +1,18 @@ - struct A { int a, b; }; -enum typecode { C1, C2 }; - -static struct A -deduce_conversion(from, to) - enum typecode from, 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(C1, C2); + *globa = deduce_conversion(1, 2); return 0; }