[PATCH] Testcase for PR61012
Richard Biener
rguenther@suse.de
Tue Jun 17 09:05:00 GMT 2014
>From the new dup.
Committed to trunk and branch.
Richard.
2014-06-17 Richard Biener <rguenther@suse.de>
PR lto/61012
* gcc.dg/lto/pr61526_0.c: New testcase.
* gcc.dg/lto/pr61526_1.c: Likewise.
Index: gcc/testsuite/gcc.dg/lto/pr61526_0.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/pr61526_0.c (revision 0)
+++ gcc/testsuite/gcc.dg/lto/pr61526_0.c (working copy)
@@ -0,0 +1,6 @@
+/* { dg-lto-do link } */
+/* { dg-lto-options { { -fPIC -flto -flto-partition=1to1 } } } */
+/* { dg-extra-ld-options { -shared } } */
+
+static void *master;
+void *foo () { return master; }
Index: gcc/testsuite/gcc.dg/lto/pr61526_1.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/pr61526_1.c (revision 0)
+++ gcc/testsuite/gcc.dg/lto/pr61526_1.c (working copy)
@@ -0,0 +1,2 @@
+extern void *master;
+void *bar () { return master; }
More information about the Gcc-patches
mailing list