blob: 1c866ee096010234c1e6fd9f0e35993474047434 [file] [log] [blame]
Daniel Dunbar80737ad2009-12-15 22:01:24 +00001// RUN: %clang -ccc-host-triple armv6-apple-darwin9 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '30000' | count 1
3// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | count 0
Daniel Dunbar80737ad2009-12-15 22:01:24 +00004// RUN: %clang -ccc-host-triple armv6-apple-darwin9 -miphoneos-version-min=2.0 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00005// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20000' | count 1
6// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | count 0
Daniel Dunbar80737ad2009-12-15 22:01:24 +00007// RUN: %clang -ccc-host-triple armv6-apple-darwin9 -miphoneos-version-min=2.2 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00008// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20200' | count 1
Daniel Dunbar80737ad2009-12-15 22:01:24 +00009// RUN: %clang -ccc-host-triple i686-apple-darwin8 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000010// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | count 0
11// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1
Daniel Dunbar80737ad2009-12-15 22:01:24 +000012// RUN: %clang -ccc-host-triple i686-apple-darwin9 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000013// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
Daniel Dunbar80737ad2009-12-15 22:01:24 +000014// RUN: %clang -ccc-host-triple i686-apple-darwin10 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000015// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1
Daniel Dunbar80737ad2009-12-15 22:01:24 +000016// RUN: %clang -ccc-host-triple i686-apple-darwin9 -mmacosx-version-min=10.4 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000017// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | count 0
18// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1
Daniel Dunbar80737ad2009-12-15 22:01:24 +000019// RUN: %clang -ccc-host-triple i686-apple-darwin9 -mmacosx-version-min=10.5 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000020// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
Daniel Dunbar80737ad2009-12-15 22:01:24 +000021// RUN: %clang -ccc-host-triple i686-apple-darwin9 -mmacosx-version-min=10.6 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000022// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1