The testcase contains an ODR violation and thus the observed
link failure is an accepted outcome (it originally was for
an ICE during WPA). Thus the following adds -shared to the link.
2020-04-09 Richard Biener <rguenther@suse.de>
PR testsuite/93369
* g++.dg/lto/pr64076_0.C: Add -shared -fPIC.
* g++.dg/lto/pr64076_1.C: Add -fPIC.
+2020-04-09 Richard Biener <rguenther@suse.de>
+
+ PR testsuite/93369
+ * g++.dg/lto/pr64076_0.C: Add -shared -fPIC.
+ * g++.dg/lto/pr64076_1.C: Add -fPIC.
+
2020-04-09 Andrea Corallo <andrea.corallo@arm.com>
* gcc.target/aarch64/pr94530.c: New test.
// { dg-lto-do link }
+// { dg-lto-options { { -O0 -flto -shared -fPIC } } }
+// { dg-require-effective-target fpic }
+// { dg-require-effective-target shared }
+// { dg-extra-ld-options "-shared" }
#define XXX
#include "pr64076.H"
-// { dg-options -fno-lto }
+// { dg-options "-fno-lto -fPIC" }
#include "pr64076.H"