1 // RUN: %clang_cc1 -triple x86_64-apple-ios13.1-macabi -emit-llvm -o - %s | FileCheck %s
3 void use_at_available(void) {
4 // CHECK: call i32 @__isPlatformVersionAtLeast(i32 2, i32 14, i32 0, i32 0)
5 // CHECK-NEXT: icmp ne i32
6 if (__builtin_available(ios 14, *))
9 // CHECK: call i32 @__isPlatformVersionAtLeast(i32 2, i32 13, i32 2, i32 0)
10 // CHECK-NEXT: icmp ne i32
11 if (@available(macCatalyst 13.2, *))
14 // CHECK: call i32 @__isPlatformVersionAtLeast(i32 2, i32 13, i32 2, i32 0)
15 // CHECK-NEXT: icmp ne i32
16 if (__builtin_available(macCatalyst 13.2, macos 10.15.2, *))