From 0483af36a21cedad8feca730275ba609fc138a8e Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 29 Feb 2020 16:56:07 +0000 Subject: [PATCH] Add dg-require-visibility to tests that require visibility support. 2020-02-29 John David Anglin * /g++.dg/ext/visibility/ref-temp1.C: Require visibility. * gfortran.dg/pr90988_4.f: Likewise. * gfortran.dg/pr91372.f90: Likewise. --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/ext/visibility/ref-temp1.C | 1 + gcc/testsuite/gfortran.dg/pr90988_4.f | 1 + gcc/testsuite/gfortran.dg/pr91372.f90 | 1 + 4 files changed, 9 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9b2df5596d7..a6d3e1495e2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-02-29 John David Anglin + + * /g++.dg/ext/visibility/ref-temp1.C: Require visibility. + * gfortran.dg/pr90988_4.f: Likewise. + * gfortran.dg/pr91372.f90: Likewise. + 2020-02-29 Jeff Law * gcc.target/or1k/return-2.c: Update expected output. diff --git a/gcc/testsuite/g++.dg/ext/visibility/ref-temp1.C b/gcc/testsuite/g++.dg/ext/visibility/ref-temp1.C index ecb62326e1b..5d3e99ddb76 100644 --- a/gcc/testsuite/g++.dg/ext/visibility/ref-temp1.C +++ b/gcc/testsuite/g++.dg/ext/visibility/ref-temp1.C @@ -1,5 +1,6 @@ // PR c++/91476 // Test that hidden and internal visibility propagates to reference temps. +// { dg-require-visibility "" } #define HIDDEN __attribute((visibility("hidden"))) diff --git a/gcc/testsuite/gfortran.dg/pr90988_4.f b/gcc/testsuite/gfortran.dg/pr90988_4.f index 3379b2e128d..0a4e3f6aabf 100644 --- a/gcc/testsuite/gfortran.dg/pr90988_4.f +++ b/gcc/testsuite/gfortran.dg/pr90988_4.f @@ -1,4 +1,5 @@ c { dg-do compile } +c { dg-require-visibility "" } module foo implicit none real a,b,c diff --git a/gcc/testsuite/gfortran.dg/pr91372.f90 b/gcc/testsuite/gfortran.dg/pr91372.f90 index b9483141eb6..8c200f683a6 100644 --- a/gcc/testsuite/gfortran.dg/pr91372.f90 +++ b/gcc/testsuite/gfortran.dg/pr91372.f90 @@ -1,4 +1,5 @@ ! { dg-do compile } +! { dg-require-visibility "" } ! PR fortran/91372 module module_sf_lake implicit none -- 2.30.2