diff mbox

Testcase for PR61012

Message ID alpine.LSU.2.11.1406171103020.29270@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Biener June 17, 2014, 9:03 a.m. UTC
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.
diff mbox

Patch

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; }