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.
19 lines
883 B
Swift
19 lines
883 B
Swift
// RUN: %empty-directory(%t.mcp)
|
|
|
|
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -typecheck -F %S/Inputs/frameworks -I %S/Inputs/custom-modules -module-cache-path %t.mcp %s >%t.txt 2>&1
|
|
// RUN: %FileCheck %S/Inputs/custom-modules/ImportAsMember.h <%t.txt
|
|
// RUN: %FileCheck %S/Inputs/custom-modules/ImportAsMember_Private.h <%t.txt
|
|
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -typecheck -F %S/Inputs/frameworks -I %S/Inputs/custom-modules -module-cache-path %t.mcp %s -verify -verify-ignore-unrelated
|
|
|
|
import ImportAsMember
|
|
import ImportAsMember_Private
|
|
import ImportAsMemberSubmodules
|
|
|
|
let _: IAMSOuter.Inner?
|
|
let _: IAMMultipleNested.Inner? // expected-error {{ambiguous type name 'Inner' in 'IAMMultipleNested'}}
|
|
|
|
func testCreateShadowing(d: Double) -> Struct1 {
|
|
return Struct1(x: d, y: d, z: d)
|
|
}
|