From 79eaf97c33581720569f1ca23237a1cae62da2f2 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 4 Jun 2008 13:23:02 +0000 Subject: [PATCH] testcase [r19972] --- parsetest/cp_error033.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 parsetest/cp_error033.c 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; +} -- 2.20.1