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