1// RUN: %clang %s -o %t -mmacosx-version-min=10.7
2// RUN: %run %t
3
4int __isOSVersionAtLeast(int Major, int Minor, int Subminor);
5
6int main() {
7 // When CoreFoundation isn't linked, we expect the system version to be 0, 0, 0.
8 if (__isOSVersionAtLeast(Major: 1, Minor: 0, Subminor: 0))
9 return 1;
10 return 0;
11}
12

source code of compiler-rt/test/builtins/TestCases/Darwin/os_version_check_test_no_core_foundation.c