]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, Darwin: Use the IOKit framework in framework-1.c [PR114049].
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 18 Mar 2024 10:06:44 +0000 (10:06 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 19 Mar 2024 13:00:01 +0000 (13:00 +0000)
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>
gcc/testsuite/gcc.dg/framework-1.c

index de4adc398681b7372b1c945f41ded1b1187bab9d..fdec129a8fb8c2a4299141767428a225f0f97798 100644 (file)
@@ -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>