mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
- watchOS 12 -> 26 - visionOS 3 -> 26 - macos 16 -> 26 - iOS 19 -> 26 - tvOS 19 -> 26 The version numbers for `if #available(...)` queries are intentionally not re-mapped.
14 lines
539 B
Swift
14 lines
539 B
Swift
// RUN: %swift %s -emit-ir | %FileCheck %s
|
|
// RUN: %swift -target %target-cpu-apple-macosx10.51 %s -emit-ir | %FileCheck -check-prefix=CHECK-SPECIFIC-MAC-10-X %s
|
|
// RUN: %swift -target %target-cpu-apple-darwin55 %s -emit-ir | %FileCheck -check-prefix=CHECK-DARWIN-OVER-11 %s
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
// CHECK: target triple = "{{.*}}-apple-macosx{{[0-9][0-9]}}.
|
|
// CHECK-SPECIFIC-MAC-10-X: target triple = "{{.*}}-apple-macosx10.51.0"
|
|
// CHECK-DARWIN-OVER-11: target triple = "{{.*}}-apple-macosx56.0.0"
|
|
|
|
public func anchor() {}
|
|
anchor()
|
|
|