aboutsummaryrefslogtreecommitdiff
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-04-29 08:04:48 +0100
commit729170a45040e96d567be79bda00604a7645a23d (patch)
tree7fc255c58fd1b9ec942bf1989595a395bb30a904
parent1efe5c06d85c982ffe489bbb7a6b95dc10f7bfde (diff)
downloadgcc-729170a45040e96d567be79bda00604a7645a23d.zip
gcc-729170a45040e96d567be79bda00604a7645a23d.tar.gz
gcc-729170a45040e96d567be79bda00604a7645a23d.tar.bz2
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> (cherry picked from commit 4adb1a5839e7a3310a127c1776f1f95d7edaa6ff)
-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 de4adc3..fdec129 100644
--- a/gcc/testsuite/gcc.dg/framework-1.c
+++ b/gcc/testsuite/gcc.dg/framework-1.c
@@ -1,4 +1,10 @@
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-options "-F." } */
-#include <Kernel/string.h>
+/* 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. */
+
+#include <IOKit/IOReturn.h>