1*67e74705SXin Li // RUN: %clang_cc1 -triple armv6-apple-ios3.0.0 -dM -E -o %t %s 2*67e74705SXin Li // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '30000' | count 1 3*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t 4*67e74705SXin Li // RUN: %clang_cc1 -triple armv6-apple-ios2.0.0 -dM -E -o %t %s 5*67e74705SXin Li // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20000' | count 1 6*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t 7*67e74705SXin Li // RUN: %clang_cc1 -triple armv6-apple-ios2.2.0 -dM -E -o %t %s 8*67e74705SXin Li // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20200' | count 1 9*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t 10*67e74705SXin Li // RUN: %clang_cc1 -triple armv6-apple-ios2.3.1 -dM -E -o %t %s 11*67e74705SXin Li // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20301' | count 1 12*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t 13*67e74705SXin Li // RUN: %clang_cc1 -triple i386-apple-macosx10.4.0 -dM -E -o %t %s 14*67e74705SXin Li // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1 15*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 16*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__' %t 17*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__' %t 18*67e74705SXin Li // RUN: %clang_cc1 -triple i386-apple-macosx10.4.10 -dM -E -o %t %s 19*67e74705SXin Li // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1049' | count 1 20*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 21*67e74705SXin Li // RUN: %clang_cc1 -triple i386-apple-macosx10.5.0 -dM -E -o %t %s 22*67e74705SXin Li // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1 23*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 24*67e74705SXin Li // RUN: %clang_cc1 -triple i386-apple-macosx10.6.0 -dM -E -o %t %s 25*67e74705SXin Li // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1 26*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 27*67e74705SXin Li // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10.0 -dM -E -o %t %s 28*67e74705SXin Li // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '101000' | count 1 29*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 30*67e74705SXin Li 31*67e74705SXin Li // RUN: %clang_cc1 -triple arm64-apple-tvos8.3 -dM -E -o %t %s 32*67e74705SXin Li // RUN: grep '__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__' %t | grep '80300' | count 1 33*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t 34*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 35*67e74705SXin Li 36*67e74705SXin Li // RUN: %clang_cc1 -triple x86_64-apple-tvos8.3 -dM -E -o %t %s 37*67e74705SXin Li // RUN: grep '__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__' %t | grep '80300' | count 1 38*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t 39*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 40*67e74705SXin Li 41*67e74705SXin Li // RUN: %clang_cc1 -triple armv7k-apple-watchos2.1 -dM -E -o %t %s 42*67e74705SXin Li // RUN: grep '__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__' %t | grep '20100' | count 1 43*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t 44*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 45*67e74705SXin Li 46*67e74705SXin Li // RUN: %clang_cc1 -triple i386-apple-watchos2.1 -dM -E -o %t %s 47*67e74705SXin Li // RUN: grep '__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__' %t | grep '20100' | count 1 48*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t 49*67e74705SXin Li // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t 50