Files
swift-mirror/test/Serialization/AllowErrors/invalid-operator.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

10 lines
522 B
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -verify -verify-ignore-unrelated -emit-module -experimental-allow-module-with-compiler-errors %s -o %t/foo.swiftmodule
// RUN: %target-swift-frontend -verify -verify-ignore-unrelated -emit-module -module-name foo %t/foo.swiftmodule
// rdar://97267326 Make sure we can handle an operator function without its declaration.
struct S {
static func ^^^ (lhs: S, rhs: S) {} // expected-error {{operator implementation without matching operator declaration}}
}