Files
swift-mirror/test/IRGen/osx-targets.swift
Allan Shortlidge 3f305a48c8 AST: Re-map macOS 16 aligned availability versions to 26.
- 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.
2025-06-10 22:11:05 -07:00

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()