summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2024-03-18 10:06:44 +0000
committerIain Sandoe <iain@sandoe.co.uk>2024-03-19 13:00:01 +0000
commit4adb1a5839e7a3310a127c1776f1f95d7edaa6ff (patch)
treed072378723351dcf92a5c9ccf6c61971baaddeca
parentlibstdc++: Sync the atomic_link_flags implementation with GCC. (diff)
testsuite, Darwin: Use the IOKit framework in framework-1.c [PR114049].
The intent of the test is to show that we find a framework that is installed in /System/Library/Frameworks when the user has added a '-F' option. The trick is to choose some header that is present for all the Darwin versions we support and that does not contain any content we cannot parse. We had been using the Kernel framework for this, but recent SDK versions have revealed that this is not suitable. Replacing with a use of IOKit. PR target/114049 gcc/testsuite/ChangeLog: * gcc.dg/framework-1.c: Use an IOKit header instead of a Kernel one. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
-rw-r--r--gcc/testsuite/gcc.dg/framework-1.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/framework-1.c b/gcc/testsuite/gcc.dg/framework-1.c
index de4adc398681..fdec129a8fb8 100644
--- a/gcc/testsuite/gcc.dg/framework-1.c
+++ b/gcc/testsuite/gcc.dg/framework-1.c
@@ -1,4 +1,10 @@
1/* { dg-do compile { target *-*-darwin* } } */ 1/* { dg-do compile { target *-*-darwin* } } */
2/* { dg-options "-F." } */ 2/* { dg-options "-F." } */
3 3
4#include <Kernel/string.h> 4/* The intent of the test is to show that we find a framework that
5 is installed in /System/Library/Frameworks when the user has added
6 a '-F' option. The trick is to choose some header that is present
7 for all the Darwin versions we support and that does not contain any
8 content we cannot parse. */
9
10#include <IOKit/IOReturn.h>