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
981 B
Swift
23 lines
981 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -verify-ignore-unrelated -I %S/Inputs/custom-modules %s
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -verify-ignore-unrelated -I %S/Inputs/custom-modules -DREVERSED %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// Do not import Foundation! This tests indirect visibility.
|
|
#if REVERSED
|
|
import Redeclaration
|
|
import AppKit
|
|
#else
|
|
import AppKit
|
|
import Redeclaration
|
|
#endif
|
|
|
|
let encoding: UInt = NSUTF8StringEncoding
|
|
|
|
let viaTypedef: Redeclaration.NSPoint = AppKit.NSPoint(x: 0, y: 0)
|
|
Redeclaration.NSStringToNSString(AppKit.NSStringToNSString("abc")) // expected-warning {{result of call to 'NSStringToNSString' is unused}}
|
|
|
|
let viaStruct: Redeclaration.FooStruct1 = AppKit.FooStruct1()
|
|
let forwardDecl: Redeclaration.Tribool = AppKit.Tribool() // expected-error {{no type named 'Tribool' in module 'Redeclaration'}}
|
|
// expected-error@-1 {{missing argument for parameter #1 in call}}
|