Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 1 | // RUN: %clang -target armv6-apple-darwin9 -dM -E -o %t %s |
Rafael Espindola | be8a91b | 2013-07-04 15:22:16 +0000 | [diff] [blame] | 2 | // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t |
Daniel Dunbar | b244715 | 2010-07-15 16:18:06 +0000 | [diff] [blame] | 3 | // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1 |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 4 | // RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=3.0 -dM -E -o %t %s |
Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '30000' | count 1 |
Rafael Espindola | be8a91b | 2013-07-04 15:22:16 +0000 | [diff] [blame] | 6 | // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 7 | // RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.0 -dM -E -o %t %s |
Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 8 | // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20000' | count 1 |
Rafael Espindola | be8a91b | 2013-07-04 15:22:16 +0000 | [diff] [blame] | 9 | // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 10 | // RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.2 -dM -E -o %t %s |
Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 11 | // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20200' | count 1 |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 12 | // RUN: %clang -target i686-apple-darwin8 -dM -E -o %t %s |
Rafael Espindola | be8a91b | 2013-07-04 15:22:16 +0000 | [diff] [blame] | 13 | // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t |
Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 14 | // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1 |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 15 | // RUN: %clang -target i686-apple-darwin9 -dM -E -o %t %s |
Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 16 | // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1 |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 17 | // RUN: %clang -target i686-apple-darwin10 -dM -E -o %t %s |
Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 18 | // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1 |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 19 | // RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.4 -dM -E -o %t %s |
Rafael Espindola | be8a91b | 2013-07-04 15:22:16 +0000 | [diff] [blame] | 20 | // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t |
Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 21 | // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1 |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 22 | // RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.5 -dM -E -o %t %s |
Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 23 | // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1 |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 24 | // RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.6 -dM -E -o %t %s |
Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 25 | // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1 |
Bob Wilson | 2a3710e | 2014-08-08 21:45:53 +0000 | [diff] [blame^] | 26 | // RUN: %clang -target x86_64-apple-macosx -mmacosx-version-min=10.10 -dM -E -o %t %s |
| 27 | // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '101000' | count 1 |