mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 10:16:07 +00:00

This is the second patch that upstreams the support for Apple's DriverKit. The first patch: https://reviews.llvm.org/D118046. Differential Revision: https://reviews.llvm.org/D121911
11 lines
344 B
C
11 lines
344 B
C
// RUN: %clang_cc1 -triple x86_64-apple-driverkit19.0 -emit-llvm -o - %s | FileCheck %s
|
|
|
|
void use_at_available() {
|
|
// CHECK: call i32 @__isPlatformVersionAtLeast(i32 10, i32 19, i32 1, i32 0)
|
|
// CHECK-NEXT: icmp ne
|
|
if (__builtin_available(driverkit 19.1, *))
|
|
;
|
|
}
|
|
|
|
// CHECK: declare i32 @__isPlatformVersionAtLeast(i32, i32, i32, i32)
|