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