re PR lto/43208 (lto1: error: invalid conversion in return statement)
authorRichard Guenther <rguenther@suse.de>
Tue, 20 Jul 2010 13:03:10 +0000 (13:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 20 Jul 2010 13:03:10 +0000 (13:03 +0000)
2010-07-20  Richard Guenther  <rguenther@suse.de>

PR lto/43208
* gcc.dg/lto/20100720-1_0.c: New testcase.
* gcc.dg/lto/20100720-1_1.c: Likewise.

From-SVN: r162338

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/20100720-1_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/20100720-1_1.c [new file with mode: 0644]

index 391d88f0a7691fd73b066419bb31c81cddfc9795..d5beca903af3ca7ccc0144bf0ea5780a6da43862 100644 (file)
@@ -1,3 +1,9 @@
+2010-07-20  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/43208
+       * gcc.dg/lto/20100720-1_0.c: New testcase.
+       * gcc.dg/lto/20100720-1_1.c: Likewise.
+
 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
 
        PR debug/45003
diff --git a/gcc/testsuite/gcc.dg/lto/20100720-1_0.c b/gcc/testsuite/gcc.dg/lto/20100720-1_0.c
new file mode 100644 (file)
index 0000000..ca9366f
--- /dev/null
@@ -0,0 +1,22 @@
+/* { dg-lto-do run } */
+
+struct X {
+  int a;
+};
+
+typedef struct list_node *list;
+
+struct list_node {
+  list next;
+  struct X *value;
+};
+
+list f(void)
+{
+  return 0;
+}
+
+int main(void)
+{
+  return 0;
+}
diff --git a/gcc/testsuite/gcc.dg/lto/20100720-1_1.c b/gcc/testsuite/gcc.dg/lto/20100720-1_1.c
new file mode 100644 (file)
index 0000000..789e88e
--- /dev/null
@@ -0,0 +1,15 @@
+struct X {
+  int b;
+};
+
+typedef struct list_node *list;
+
+struct list_node {
+  list next;
+  struct X *value;
+};
+
+list g(void)
+{
+  return 0;
+}