[committed] Add dg-require-visibility to some tests

Message ID 4074fb62-76c8-fd2f-546f-cc24391c5be3@bell.net
State New
Headers show
Series
  • [committed] Add dg-require-visibility to some tests
Related show

Commit Message

John David Anglin Feb. 29, 2020, 5:04 p.m.
This fixes the failure of g++.dg/ext/visibility/ref-temp1.C, gfortran.dg/pr90988_4.f and
gfortran.dg/pr91372.f90 on hppa2.0w-hp-hpux11.11.

Dave

2020-02-29  John David Anglin  <danglin@gcc.gnu.org>

	* g++.dg/ext/visibility/ref-temp1.C: Require visibility.
	* gfortran.dg/pr90988_4.f: Likewise.
	* gfortran.dg/pr91372.f90: Likewise.

Patch

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