simpler testcase
authorMatthias Braun <matze@braunis.de>
Wed, 4 Jun 2008 13:24:12 +0000 (13:24 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 4 Jun 2008 13:24:12 +0000 (13:24 +0000)
[r19973]

parsetest/cp_error033.c

index 07e4e42..a876535 100644 (file)
@@ -1,13 +1,9 @@
-
 struct A {
        int a, b;
 };
 
-enum typecode { C1, C2 };
-
 static struct A
-deduce_conversion(from, to)
-       enum typecode from, to;
+deduce_conversion(int from, int to)
 {
        struct A result = { 1, 2 };
        return result;
@@ -18,6 +14,6 @@ int x = 1;
 
 int main(int argc, char **argv)
 {
-       globa[x] = deduce_conversion(C1, C2);
+       globa[x] = deduce_conversion(1, 2);
        return 0;
 }