- do not print a space at the end of qualifiers (needed for diagnostic)
[cparser] / parsetest / cp_error033.c
index a876535..093c28b 100644 (file)
@@ -2,18 +2,17 @@ struct A {
        int a, b;
 };
 
-static struct A
-deduce_conversion(int from, int to)
+static struct A deduce_conversion(int from, int to)
 {
        struct A result = { 1, 2 };
        return result;
 }
 
-struct A globa[4];
-int x = 1;
+struct A globa_real;
+struct A *globa = &globa_real;
 
 int main(int argc, char **argv)
 {
-       globa[x] = deduce_conversion(1, 2);
+       *globa = deduce_conversion(1, 2);
        return 0;
 }