mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is necessary to ensure that availability checks contained in inlined functions are compiled correctly for zippered modules when built from interface. Resolves rdar://130094532.
14 lines
596 B
Swift
14 lines
596 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-emit-module-interface(%t/TargetVariant.swiftinterface) %s -module-name TargetVariant -target %target-cpu-apple-macosx13 -target-variant %target-cpu-apple-ios16-macabi
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/TargetVariant.swiftinterface) -module-name TargetVariant
|
|
// RUN: %FileCheck %s < %t/TargetVariant.swiftinterface
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
// CHECK: swift-module-flags
|
|
// CHECK-SAME: -target {{.*}}-apple-macosx13
|
|
// CHECK-SAME: -target-variant {{.*}}-apple-ios16-macabi
|
|
|
|
// CHECK: public func test()
|
|
public func test() {}
|