[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / attr-availability-visionos.c
blob09b98fb4a7d5e3d54fcd11f17c3ae7ba154ab09b
1 // RUN: %clang_cc1 -triple arm64-apple-xros1 -emit-llvm -o - %s 2>&1 | FileCheck %s
3 __attribute__((availability(visionOS, introduced=1.1)))
4 void introduced_1_1();
6 void use() {
7 if (__builtin_available(visionOS 1.2, *))
8 introduced_1_1();
9 // CHECK: call i32 @__isPlatformVersionAtLeast(i32 11, i32 1, i32 2, i32 0)