2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target armv6-apple-darwin9 -dM -E -o %t %s
|
2013-07-04 23:22:16 +08:00
|
|
|
// RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
|
2010-07-16 00:18:06 +08:00
|
|
|
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=3.0 -dM -E -o %t %s
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '30000' | count 1
|
2013-07-04 23:22:16 +08:00
|
|
|
// RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.0 -dM -E -o %t %s
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20000' | count 1
|
2013-07-04 23:22:16 +08:00
|
|
|
// RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.2 -dM -E -o %t %s
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20200' | count 1
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target i686-apple-darwin8 -dM -E -o %t %s
|
2013-07-04 23:22:16 +08:00
|
|
|
// RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target i686-apple-darwin9 -dM -E -o %t %s
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target i686-apple-darwin10 -dM -E -o %t %s
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.4 -dM -E -o %t %s
|
2013-07-04 23:22:16 +08:00
|
|
|
// RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.5 -dM -E -o %t %s
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.6 -dM -E -o %t %s
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1
|
2014-08-09 05:45:53 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-macosx -mmacosx-version-min=10.10 -dM -E -o %t %s
|
|
|
|
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '101000' | count 1
|