1 /* { dg-options "-isysroot ${srcdir}/gcc.dg/cpp" } */
2 /* { dg-do compile  { target *-*-darwin* } } */
3 
4 /* For the test to succeed there needs to be some header that is to be found
5    in the 'expected' place i.e. <sysroot>/usr/include/.  It's important that
6    it is not the name of a header for which fixincludes have been applied,
7    since such headers will be found in the gcc include-fixed dir and, in
8    general, reference additional headers.  The dummy sysroot will prevent the
9    additional headers from being found, resulting in a failed test.  So use
10    a header name we don't expect to see. */
11 #include <example.h>
main()12 int main()
13 {
14   /* Special example.h supplies function foo.  */
15   void (*x)(void) = foo;
16   return 0;
17 }
18