even simpler
authorMatthias Braun <matze@braunis.de>
Wed, 4 Jun 2008 13:39:47 +0000 (13:39 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 4 Jun 2008 13:39:47 +0000 (13:39 +0000)
[r19976]

parsetest/cp_error033.c

index 2b3062b..bec16d7 100644 (file)
@@ -8,11 +8,10 @@ static struct A deduce_conversion(int from, int to)
        return result;
 }
 
-struct A globa[4];
-int x = 1;
+struct A *globa;
 
 int main(int argc, char **argv)
 {
-       globa[x] = deduce_conversion(1, 2);
+       *globa = deduce_conversion(1, 2);
        return 0;
 }