testcase
authorMatthias Braun <matze@braunis.de>
Wed, 4 Jun 2008 13:23:02 +0000 (13:23 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 4 Jun 2008 13:23:02 +0000 (13:23 +0000)
[r19972]

parsetest/cp_error033.c [new file with mode: 0644]

diff --git a/parsetest/cp_error033.c b/parsetest/cp_error033.c
new file mode 100644 (file)
index 0000000..07e4e42
--- /dev/null
@@ -0,0 +1,23 @@
+
+struct A {
+       int a, b;
+};
+
+enum typecode { C1, C2 };
+
+static struct A
+deduce_conversion(from, to)
+       enum typecode from, to;
+{
+       struct A result = { 1, 2 };
+       return result;
+}
+
+struct A globa[4];
+int x = 1;
+
+int main(int argc, char **argv)
+{
+       globa[x] = deduce_conversion(C1, C2);
+       return 0;
+}