brintos

brintos / llvm-project-archived public Read only

0
0
Text · 324 B · 09b98fb Raw
11 lines · c
1// RUN: %clang_cc1 -triple arm64-apple-xros1 -emit-llvm -o - %s 2>&1 | FileCheck %s2 3__attribute__((availability(visionOS, introduced=1.1)))4void introduced_1_1();5 6void 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)10}11