1f4a2713aSLionel Sambuc // RUN: %clang -target armv6-apple-darwin9 -dM -E -o %t %s 2f4a2713aSLionel Sambuc // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 3f4a2713aSLionel Sambuc // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1 4f4a2713aSLionel Sambuc // RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=3.0 -dM -E -o %t %s 5f4a2713aSLionel Sambuc // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '30000' | count 1 6f4a2713aSLionel Sambuc // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t 7f4a2713aSLionel Sambuc // RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.0 -dM -E -o %t %s 8f4a2713aSLionel Sambuc // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20000' | count 1 9f4a2713aSLionel Sambuc // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t 10f4a2713aSLionel Sambuc // RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.2 -dM -E -o %t %s 11f4a2713aSLionel Sambuc // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20200' | count 1 12f4a2713aSLionel Sambuc // RUN: %clang -target i686-apple-darwin8 -dM -E -o %t %s 13f4a2713aSLionel Sambuc // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 14f4a2713aSLionel Sambuc // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1 15f4a2713aSLionel Sambuc // RUN: %clang -target i686-apple-darwin9 -dM -E -o %t %s 16f4a2713aSLionel Sambuc // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1 17f4a2713aSLionel Sambuc // RUN: %clang -target i686-apple-darwin10 -dM -E -o %t %s 18f4a2713aSLionel Sambuc // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1 19f4a2713aSLionel Sambuc // RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.4 -dM -E -o %t %s 20f4a2713aSLionel Sambuc // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 21f4a2713aSLionel Sambuc // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1 22f4a2713aSLionel Sambuc // RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.5 -dM -E -o %t %s 23f4a2713aSLionel Sambuc // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1 24f4a2713aSLionel Sambuc // RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.6 -dM -E -o %t %s 25f4a2713aSLionel Sambuc // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1 26*0a6a1f1dSLionel Sambuc // RUN: %clang -target x86_64-apple-macosx -mmacosx-version-min=10.10 -dM -E -o %t %s 27*0a6a1f1dSLionel Sambuc // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '101000' | count 1 28