diff options
author | Devang Patel <dpatel@apple.com> | 2004-11-24 09:47:32 -0800 |
---|---|---|
committer | Devang Patel <dpatel@gcc.gnu.org> | 2004-11-24 09:47:32 -0800 |
commit | 479ec1d1e046ba967cb712b7421dcb299733f4aa (patch) | |
tree | ea366309ad8043d0c8ca90046334475e8522bf10 /gcc/testsuite/gcc.dg/cpp/isysroot-1.c | |
parent | b0896d72f0bad01f440692c69003962200806e31 (diff) | |
download | gcc-479ec1d1e046ba967cb712b7421dcb299733f4aa.zip gcc-479ec1d1e046ba967cb712b7421dcb299733f4aa.tar.gz gcc-479ec1d1e046ba967cb712b7421dcb299733f4aa.tar.bz2 |
gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
PR/18555
* gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
* config/darwin-c.c (darwin_register_frameworks): Use sysroot.
testsuite
* gcc.dg/cpp/isysroot-1.c: New test.
* gcc.dg/cpp/usr/include/stdio.h: New file.
* gcc.dg/cpp/isysroot-2.c: New test.
* gcc.dg/cpp/System/Library/Framework/Carbon.framework/Headers/Carbon.h:
New file.
From-SVN: r91178
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/isysroot-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/isysroot-1.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/isysroot-1.c b/gcc/testsuite/gcc.dg/cpp/isysroot-1.c new file mode 100644 index 0000000..bfbf255 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/isysroot-1.c @@ -0,0 +1,10 @@ +/* { dg-options "-isysroot ${srcdir}/gcc.dg/cpp" } */ +/* { dg-do compile } */ + +#include <stdio.h> +int main() +{ + /* Special stdio.h supplies function foo. */ + void (*x)(void) = foo; + return 0; +} |