The test works by checking that a known framework path is accessible
when the '-F' option is given.  We need to find a framework path that
exists across a range of Darwin versions, and parseable by GCC.  This
adjusts the test to use a header path that exists and is parsable from
Darwin9 through Darwin19.

tested with Darwin9 through Darwin19 SDKs on x86-64-darwin16,
applied to mainline,
thanks
Iain

gcc/testsuite/ChangeLog:

2019-11-06  Iain Sandoe  <i...@sandoe.co.uk>

        * gcc.dg/framework-1.c: Adjust test header path.


diff --git a/gcc/testsuite/gcc.dg/framework-1.c 
b/gcc/testsuite/gcc.dg/framework-1.c
index 7e68683..de4adc3 100644
--- a/gcc/testsuite/gcc.dg/framework-1.c
+++ b/gcc/testsuite/gcc.dg/framework-1.c
@@ -1,4 +1,4 @@
 /* { dg-do compile { target *-*-darwin* } } */
 /* { dg-options "-F." } */
 
-#include <Carbon/Carbon.h>
+#include <Kernel/string.h>

Reply via email to