blob: 7234ab48e3b0721f7f2251f481202c71910c6d9b [file] [log] [blame]
Sebastian Pop9ec60df2012-01-20 22:01:23 +00001// RUN: %clang -target armv6-apple-darwin9 -dM -E -o %t %s
Rafael Espindolad029cbb2013-07-04 15:22:16 +00002// RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
Daniel Dunbar2bb38d02010-07-15 16:18:06 +00003// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
Sebastian Pop9ec60df2012-01-20 22:01:23 +00004// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=3.0 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00005// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '30000' | count 1
Rafael Espindolad029cbb2013-07-04 15:22:16 +00006// RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
Sebastian Pop9ec60df2012-01-20 22:01:23 +00007// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.0 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00008// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20000' | count 1
Rafael Espindolad029cbb2013-07-04 15:22:16 +00009// RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
Sebastian Pop9ec60df2012-01-20 22:01:23 +000010// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.2 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000011// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20200' | count 1
Sebastian Pop9ec60df2012-01-20 22:01:23 +000012// RUN: %clang -target i686-apple-darwin8 -dM -E -o %t %s
Rafael Espindolad029cbb2013-07-04 15:22:16 +000013// RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000014// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1
Sebastian Pop9ec60df2012-01-20 22:01:23 +000015// RUN: %clang -target i686-apple-darwin9 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000016// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
Sebastian Pop9ec60df2012-01-20 22:01:23 +000017// RUN: %clang -target i686-apple-darwin10 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000018// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1
Sebastian Pop9ec60df2012-01-20 22:01:23 +000019// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.4 -dM -E -o %t %s
Rafael Espindolad029cbb2013-07-04 15:22:16 +000020// RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000021// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1
Sebastian Pop9ec60df2012-01-20 22:01:23 +000022// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.5 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000023// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
Sebastian Pop9ec60df2012-01-20 22:01:23 +000024// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.6 -dM -E -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000025// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1