// RUN: %empty-directory(%t) // RUN: %target-swift-emit-module-interface(%t/Test.swiftinterface) %s \ // RUN: -I %S/../Inputs/custom-modules/availability-domains \ // RUN: -enable-experimental-feature CustomAvailability \ // RUN: -module-name Test // RUN: %target-swift-typecheck-module-from-interface(%t/Test.swiftinterface) \ // RUN: -I %S/../Inputs/custom-modules/availability-domains \ // RUN: -module-name Test // RUN: %FileCheck %s < %t/Test.swiftinterface // REQUIRES: swift_feature_CustomAvailability import Oceans // re-exports Rivers // CHECK-NOT: $CustomAvailability // CHECK: @available(Colorado) // CHECK-NEXT: public func availableInColorado() @available(Colorado) public func availableInColorado() { } // CHECK: @available(Arctic, unavailable) // CHECK-NEXT: @available(Pacific) // CHECK-NEXT: public func unavailableInArcticButAvailableInPacific() @available(Arctic, unavailable) @available(Pacific) public func unavailableInArcticButAvailableInPacific() { }