From 1b238124840a323e70771d88a5b8fae48f26c69b Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Sun, 19 Jun 2022 10:28:05 +0100 Subject: [PATCH] testsuite, Darwin: Skip an unsupported test. Darwin does not support patchable function entries, skip the test there. gcc/testsuite/ChangeLog: * g++.dg/modules/pr105169_a.C: Skip the test on Darwin. * g++.dg/modules/pr105169_b.C: Likewise. --- gcc/testsuite/g++.dg/modules/pr105169_a.C | 2 +- gcc/testsuite/g++.dg/modules/pr105169_b.C | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/g++.dg/modules/pr105169_a.C b/gcc/testsuite/g++.dg/modules/pr105169_a.C index 02660b3..e4ec855 100644 --- a/gcc/testsuite/g++.dg/modules/pr105169_a.C +++ b/gcc/testsuite/g++.dg/modules/pr105169_a.C @@ -1,4 +1,4 @@ -/* { dg-module-do link } */ +/* { dg-module-do link { target { ! *-*-darwin* } } } */ /* { dg-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */ /* { dg-additional-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */ diff --git a/gcc/testsuite/g++.dg/modules/pr105169_b.C b/gcc/testsuite/g++.dg/modules/pr105169_b.C index 7a9c586..afbb129 100644 --- a/gcc/testsuite/g++.dg/modules/pr105169_b.C +++ b/gcc/testsuite/g++.dg/modules/pr105169_b.C @@ -1,4 +1,4 @@ -/* { dg-module-do link } */ +/* { dg-module-do link { target { ! *-*-darwin* } } } */ /* { dg-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */ /* { dg-additional-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */ -- 2.7.4