diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pch/pch.exp')
-rw-r--r-- | gcc/testsuite/gcc.dg/pch/pch.exp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pch/pch.exp b/gcc/testsuite/gcc.dg/pch/pch.exp index 79fd9e77139..7f6334efbce 100644 --- a/gcc/testsuite/gcc.dg/pch/pch.exp +++ b/gcc/testsuite/gcc.dg/pch/pch.exp @@ -26,6 +26,29 @@ dg-init set old_dg_do_what_default "${dg-do-what-default}" +# APPLE LOCAL begin +# Test MACOSX_DEPLOYMENT_TARGET +set macosx_deployment_target env(MACOSX_DEPLOYMENT_TARGET) +setenv MACOSX_DEPLOYMENT_TARGET 10.2 +set test "cfstring-1.c" +set f [open $test w] +set v 0 +puts $f "#include \"cfstring-1.h\"" +puts $f "/* { dg-options \"-I./ -Winvalid-pch -save-temps\" } */" +puts $f "void foo\(\) { x = 0; }" +puts $f "" +close $f +set testh "cfstring-1.hs" +set f [open $testh w] +puts $f "int x;" +puts $f "" +close $f +dg-pch $subdir $test [concat [list {-O0 -g}] $torture_without_loops] ".h" +set MACOSX_DEPLOYMENT_TARGET $macosx_deployment_target +file delete $test +file delete $testh +# APPLE LOCAL end + # Main loop. foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.c]] { global torture_without_loops |