Files
swift-mirror/test/IRGen/availability_android.swift
finagolfin 7eb94c9204 [test][android] Fix one test and disable others for NDK 28 and API 24 (#88056)
This fixes the failing IRGen test after
swiftlang/swift-docker#528 and bring those disabled tests for NDK 28
here instead.
2026-03-24 12:39:04 -07:00

17 lines
665 B
Swift

// RUN: %target-swift-frontend -target %target-triple24 -primary-file %s -emit-ir | %FileCheck %s --check-prefix=CHECK-24
// RUN: %target-swift-frontend -target %target-triple28 -primary-file %s -emit-ir | %FileCheck %s --check-prefix=CHECK-28
// CHECK-24-LABEL: define{{.*}}$s20availability_android0A5CheckyyF
// CHECK-24: call swiftcc i1 @"$ss26_stdlib_isOSVersionAtLeastyBi1_Bw_BwBwtF"(
// CHECK-28-LABEL: define{{.*}}$s20availability_android0A5CheckyyF
// CHECK-28-NOT: call swiftcc i1 @"$ss26_stdlib_isOSVersionAtLeastyBi1_Bw_BwBwtF"(
// REQUIRES: OS=linux-android
public func availabilityCheck() {
if #available(Android 28, *) {
print("test")
}
}