Files
swift-mirror/test/ClangImporter/rdar123543707.swift
Henrik G. Olsson cbc0ec3b88 Add -verify-ignore-unrelated where necessary (NFC)
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.
2025-10-04 14:19:52 -07:00

17 lines
858 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-typecheck-verify-swift -verify-ignore-unrelated -F %S/Inputs/frameworks -module-cache-path %t/mcp1 -target %target-stable-abi-triple
// REQUIRES: objc_interop
import Module
import Module_Private.Sub4
@_objcImplementation extension Module {
// expected-warning@-1 {{extension for main class interface does not provide all required implementations}}
// expected-note@-2 {{missing class method 'version()'}}
// expected-note@-3 {{missing class method 'alloc()'}}
// expected-note@-4 {{add stubs for missing '@implementation' requirements}} {{40-40=\n @objc(version)\n open class func version() -> UnsafePointer<CChar>! {\n <#code#>\n \}\n\n @objc(alloc)\n open class func alloc() -> Self! {\n <#code#>\n \}\n}}
}
extension Module: @retroactive ModuleProto {} // no-error