[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / clang / test / CodeGen / availability-check-driverkit.c
blob707a12bad937f4fbe77a74d3dad829d63b641057
1 // RUN: %clang_cc1 -triple x86_64-apple-driverkit19.0 -emit-llvm -o - %s | FileCheck %s
3 void use_at_available() {
4 // CHECK: call i32 @__isPlatformVersionAtLeast(i32 10, i32 19, i32 1, i32 0)
5 // CHECK-NEXT: icmp ne
6 if (__builtin_available(driverkit 19.1, *))
10 // CHECK: declare i32 @__isPlatformVersionAtLeast(i32, i32, i32, i32)