diff --git a/gcc/testsuite/g++.dg/ext/visibility/visibility-local-extern1.C b/gcc/testsuite/g++.dg/ext/visibility/visibility-local-extern1.C index 40c20199d0ccecbf8a6bfcc0f0df45f572b191b0..6fb1cc7f3810a0b62379d2ae0896e2f088ec3f33 100644 --- a/gcc/testsuite/g++.dg/ext/visibility/visibility-local-extern1.C +++ b/gcc/testsuite/g++.dg/ext/visibility/visibility-local-extern1.C @@ -1,6 +1,7 @@ // PR c++/103291 // { dg-additional-options -fpic } // { dg-final { scan-assembler-not "@GOTPCREL" } } +// { dg-require-effective-target fpic } #pragma GCC visibility push(hidden)