aboutsummaryrefslogtreecommitdiff
path: root/test/builtins/TestCases/Darwin/os_version_check_test_no_core_foundation.c
blob: 4e0da35cd12dbac1574413b43c0ad13ef87f0a80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang %s -o %t -mmacosx-version-min=10.5
// RUN: %run %t

int __isOSVersionAtLeast(int Major, int Minor, int Subminor);

int main() {
  // When CoreFoundation isn't linked, we expect the system version to be 0, 0,
  // 0.
  if (__isOSVersionAtLeast(1, 0, 0))
    return 1;
  return 0;
}