From: Matthias Braun Date: Wed, 4 Jun 2008 13:23:02 +0000 (+0000) Subject: testcase X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=79eaf97c33581720569f1ca23237a1cae62da2f2;p=cparser testcase [r19972] --- diff --git a/parsetest/cp_error033.c b/parsetest/cp_error033.c new file mode 100644 index 0000000..07e4e42 --- /dev/null +++ b/parsetest/cp_error033.c @@ -0,0 +1,23 @@ + +struct A { + int a, b; +}; + +enum typecode { C1, C2 }; + +static struct A +deduce_conversion(from, to) + enum typecode from, to; +{ + struct A result = { 1, 2 }; + return result; +} + +struct A globa[4]; +int x = 1; + +int main(int argc, char **argv) +{ + globa[x] = deduce_conversion(C1, C2); + return 0; +}