From: Christophe Lyon Date: Thu, 19 Apr 2018 08:59:36 +0000 (+0000) Subject: [testsuite] Fix tests for pr84805 and pr85405. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=411a771a1761e89b7420dd94bc296d52dc8c6f5c;p=gcc.git [testsuite] Fix tests for pr84805 and pr85405. 2018-04-19 Christophe Lyon * g++.dg/lto/pr85405_0.C: Require shared and fpic effective targets. * g++.dg/lto/pr85405b_0.C: Likewise. * g++.dg/lto/pr84805_0.C: Likewise. From-SVN: r259492 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a5965b1123d..018c6b54d3d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2018-04-19 Christophe Lyon + + * g++.dg/lto/pr85405_0.C: Require shared and fpic effective + targets. + * g++.dg/lto/pr85405b_0.C: Likewise. + * g++.dg/lto/pr84805_0.C: Likewise. + 2018-04-18 Martin Liska PR ipa/83983 diff --git a/gcc/testsuite/g++.dg/lto/pr84805_0.C b/gcc/testsuite/g++.dg/lto/pr84805_0.C index 34828043d2e..eda0333fbb8 100644 --- a/gcc/testsuite/g++.dg/lto/pr84805_0.C +++ b/gcc/testsuite/g++.dg/lto/pr84805_0.C @@ -1,4 +1,6 @@ // { dg-lto-do link } +// { dg-require-effective-target shared } +// { dg-require-effective-target fpic } // { dg-lto-options {{-O0 -fPIC -shared -flto}} } template < typename _Tp, _Tp __v > struct integral_constant { diff --git a/gcc/testsuite/g++.dg/lto/pr85405_0.C b/gcc/testsuite/g++.dg/lto/pr85405_0.C index 1a41d81099c..1d46ea94ba5 100644 --- a/gcc/testsuite/g++.dg/lto/pr85405_0.C +++ b/gcc/testsuite/g++.dg/lto/pr85405_0.C @@ -1,4 +1,6 @@ // { dg-lto-do link } +// { dg-require-effective-target shared } +// { dg-require-effective-target fpic } // { dg-lto-options {{-fPIC -shared -flto}} } class VclReferenceBase { // { dg-lto-warning "7: type 'struct VclReferenceBase' violates the C\\+\\+ One Definition Rule" } diff --git a/gcc/testsuite/g++.dg/lto/pr85405b_0.C b/gcc/testsuite/g++.dg/lto/pr85405b_0.C index a692abb7715..a986a1f6f74 100644 --- a/gcc/testsuite/g++.dg/lto/pr85405b_0.C +++ b/gcc/testsuite/g++.dg/lto/pr85405b_0.C @@ -1,4 +1,6 @@ // { dg-lto-do link } +// { dg-require-effective-target shared } +// { dg-require-effective-target fpic } // { dg-lto-options {{-fPIC -shared -flto}} } class VclReferenceBase { // { dg-lto-warning "7: type 'struct VclReferenceBase' violates the C\\+\\+ One Definition Rule" }