some testcases I had lying around here
[cparser] / parsetest / cp_error033.c
index 07e4e42..093c28b 100644 (file)
@@ -1,23 +1,18 @@
-
 struct A {
        int a, b;
 };
 
-enum typecode { C1, C2 };
-
-static struct A
-deduce_conversion(from, to)
-       enum typecode from, 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(C1, C2);
+       *globa = deduce_conversion(1, 2);
        return 0;
 }