1 // RUN: %clang %s -o %t -mmacosx-version-min=10.7 -framework CoreFoundation -DMAJOR=%macos_version_major -DMINOR=%macos_version_minor -DSUBMINOR=%macos_version_subminor
4 int __isOSVersionAtLeast(int Major
, int Minor
, int Subminor
);
7 if (!__isOSVersionAtLeast(MAJOR
, MINOR
, SUBMINOR
))
9 if (__isOSVersionAtLeast(MAJOR
, MINOR
, SUBMINOR
+ 1))
11 if (SUBMINOR
&& __isOSVersionAtLeast(MAJOR
+ 1, MINOR
, SUBMINOR
- 1))
13 if (SUBMINOR
&& !__isOSVersionAtLeast(MAJOR
, MINOR
, SUBMINOR
- 1))
15 if (MAJOR
&& !__isOSVersionAtLeast(MAJOR
- 1, MINOR
+ 1, SUBMINOR
))