Add dg-require-visibility to tests that require visibility support.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 29 Feb 2020 16:56:07 +0000 (16:56 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 29 Feb 2020 16:56:07 +0000 (16:56 +0000)
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.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/visibility/ref-temp1.C
gcc/testsuite/gfortran.dg/pr90988_4.f
gcc/testsuite/gfortran.dg/pr91372.f90

index 9b2df55..a6d3e14 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2020-02-29  Jeff Law  <law@redhat.com>
 
        * gcc.target/or1k/return-2.c: Update expected output.
index ecb6232..5d3e99d 100644 (file)
@@ -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")))
 
index 3379b2e..0a4e3f6 100644 (file)
@@ -1,4 +1,5 @@
 c { dg-do compile }
+c { dg-require-visibility "" }
        module foo
           implicit none
           real a,b,c
index b948314..8c200f6 100644 (file)
@@ -1,4 +1,5 @@
 ! { dg-do compile }
+! { dg-require-visibility "" }
 ! PR fortran/91372   
 module module_sf_lake
     implicit none