From 05107d4e4ccd11ecc8712d6e271fcb4b5f17060f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 26 Jan 2020 00:47:18 +0100 Subject: [PATCH] testsuite: Fix up pr93166.C test, so that it doesn't FAIL with -std=c++98 and tests what it is supposed to test. 2020-01-26 Jakub Jelinek PR ipa/93166 * g++.dg/pr93166.C: Move to ... * g++.dg/pr93166_0.C: ... here. Turn it into a proper lto test. --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/{pr93166.C => lto/pr93166_0.C} | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) rename gcc/testsuite/g++.dg/{pr93166.C => lto/pr93166_0.C} (95%) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 49901356e7b..99da3cc5feb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2020-01-26 Jakub Jelinek + PR ipa/93166 + * g++.dg/pr93166.C: Move to ... + * g++.dg/pr93166_0.C: ... here. Turn it into a proper lto test. + PR tree-optimization/92788 * g++.dg/pr92788.C: Move to ... * g++.target/i386/pr92788.C: ... here. Remove target from dg-do line. diff --git a/gcc/testsuite/g++.dg/pr93166.C b/gcc/testsuite/g++.dg/lto/pr93166_0.C similarity index 95% rename from gcc/testsuite/g++.dg/pr93166.C rename to gcc/testsuite/g++.dg/lto/pr93166_0.C index e9234ce7a0c..52f7ddf4016 100644 --- a/gcc/testsuite/g++.dg/pr93166.C +++ b/gcc/testsuite/g++.dg/lto/pr93166_0.C @@ -1,5 +1,10 @@ -// { dg-do compile } -// { dg-options "-shared -flto -O2 -fPIC -fvisibility=hidden" } +// PR ipa/93166 +// { dg-lto-do link } +// { dg-lto-options { { -fPIC -O2 -flto -fvisibility=hidden } } } +// { dg-require-effective-target shared } +// { dg-require-effective-target fpic } +// { dg-extra-ld-options "-shared" } +// { dg-require-visibility "" } namespace Qt { enum DropAction {}; -- 2.30.2