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