mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
These are tests that fail in the next commit without this flag. This does not add -verify-ignore-unrelated to all tests with -verify, only the ones that would fail without it. This is NFC since this flag is currently a no-op.
23 lines
693 B
Swift
23 lines
693 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %{python} %utils/split_file.py -o %t %s
|
|
|
|
// RUN: %target-swift-frontend -emit-module -o %t/MyModule.swiftmodule %t/MyModule.swift -parse-stdlib -enable-experimental-feature Embedded -parse-as-library
|
|
// RUN: %target-swift-frontend -typecheck -verify -verify-ignore-unrelated -I %t %t/Main.swift -parse-stdlib -enable-experimental-feature Embedded
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: swift_feature_Embedded
|
|
|
|
// BEGIN MyModule.swift
|
|
|
|
@_unavailableInEmbedded
|
|
public func unavailable() { }
|
|
|
|
// BEGIN Main.swift
|
|
|
|
import MyModule
|
|
|
|
func available() {
|
|
unavailable() // expected-error {{'unavailable()' is unavailable: unavailable in embedded Swift}}
|
|
}
|
|
|