mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add -verify-ignore-unrelated to a few tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// RUN: not %target-typecheck-verify-swift
|
||||
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated
|
||||
|
||||
// This is highly invalid, so just don't crash.
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// This needs to be a separate test from verify.swift because compilation will
|
||||
// terminate after the failing import statement.
|
||||
|
||||
// RUN: not %target-typecheck-verify-swift -I %S/Inputs/broken-c-module 2>&1 | %FileCheck %s
|
||||
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated -I %S/Inputs/broken-c-module 2>&1 | %FileCheck %s
|
||||
|
||||
// CHECK: [[@LINE+3]]:8: error: unexpected error produced: could not build
|
||||
// CHECK: note: diagnostic produced elsewhere: in file included from <module-includes>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Tests for the Swift frontends `-verify` mode.
|
||||
|
||||
// RUN: not %target-typecheck-verify-swift 2>&1 | %FileCheck %s
|
||||
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated 2>&1 | %FileCheck %s
|
||||
|
||||
// CHECK: [[@LINE+1]]:1: error: unexpected error produced: cannot find 'undefinedFunc' in scope
|
||||
undefinedFunc()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: not %target-swift-frontend -typecheck -verify -serialize-diagnostics-path %t/serialized.dia %s 2>&1 | %FileCheck %s
|
||||
// RUN: not %target-swift-frontend -typecheck -verify -warnings-as-errors %s 2>&1 | %FileCheck %s -check-prefix CHECK-WARNINGS-AS-ERRORS
|
||||
// RUN: not %target-swift-frontend -typecheck -verify -verify-ignore-unrelated -serialize-diagnostics-path %t/serialized.dia %s 2>&1 | %FileCheck %s
|
||||
// RUN: not %target-swift-frontend -typecheck -verify -verify-ignore-unrelated -warnings-as-errors %s 2>&1 | %FileCheck %s -check-prefix CHECK-WARNINGS-AS-ERRORS
|
||||
// RUN: %FileCheck %s -check-prefix CHECK-SERIALIZED <%t/serialized.dia
|
||||
|
||||
// Wrong message
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: not %target-typecheck-verify-swift -I %S/Inputs -enable-experimental-cxx-interop 2>&1 | %FileCheck %s
|
||||
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated -I %S/Inputs -enable-experimental-cxx-interop 2>&1 | %FileCheck %s
|
||||
|
||||
// README: If you just added support for protocol composition to the
|
||||
// ClangTypeConverter, please update this test to use a different type that we
|
||||
|
||||
Reference in New Issue
Block a user