testcase
[cparser] / parsetest / cp_error033.c
1
2 struct A {
3         int a, b;
4 };
5
6 enum typecode { C1, C2 };
7
8 static struct A
9 deduce_conversion(from, to)
10         enum typecode from, to;
11 {
12         struct A result = { 1, 2 };
13         return result;
14 }
15
16 struct A globa[4];
17 int x = 1;
18
19 int main(int argc, char **argv)
20 {
21         globa[x] = deduce_conversion(C1, C2);
22         return 0;
23 }