Home | History | Annotate | Download | only in Driver
      1 // RUN: env MACOSX_DEPLOYMENT_TARGET=10.1 \
      2 // RUN:   %clang -ccc-host-triple i386-apple-darwin9 -DTEST0 -E %s
      3 #ifdef TEST0
      4 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1010
      5 #error Invalid version
      6 #endif
      7 #endif
      8 
      9 // RUN: env IPHONEOS_DEPLOYMENT_TARGET=2.0 \
     10 // RUN:   %clang -ccc-host-triple i386-apple-darwin9 -DTEST1 -E %s
     11 #ifdef TEST1
     12 #if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ != 20000
     13 #error Invalid version
     14 #endif
     15 #endif
     16 
     17 // RUN: env IPHONEOS_DEPLOYMENT_TARGET=2.3.1 \
     18 // RUN:   %clang -ccc-host-triple i386-apple-darwin9 -DTEST2 -E %s
     19 #ifdef TEST2
     20 #if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ != 20301
     21 #error Invalid version
     22 #endif
     23 #endif
     24 
     25 // RUN: env MACOSX_DEPLOYMENT_TARGET=10.4.10 \
     26 // RUN:   %clang -ccc-host-triple i386-apple-darwin9 -DTEST3 -E %s
     27 #ifdef TEST3
     28 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1049
     29 #error Invalid version
     30 #endif
     31 #endif
     32