Skip to content

Commit d7fdebb

Browse files
committed
[Test][multifile] Use --input-file and make FileCheck check Int|String
1 parent 83f7835 commit d7fdebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/multifile/protocol-conformance-redundant.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %target-build-swift -I%t -L%t -lDef -o %t/main %target-rpath(%t) %s
55
// RUN: %target-codesign %t/main %t/%target-library-name(Def) %t/%target-library-name(Ext)
66
// RUN: %target-run %t/main %t/%target-library-name(Def) %t/%target-library-name(Ext) 2> %t/stderr.txt | %FileCheck %s
7-
// RUN: %FileCheck %s -check-prefix=CHECK-STDERR < %t/stderr.txt
7+
// RUN: %FileCheck %s -check-prefix=CHECK-STDERR --input-file=%t/stderr.txt
88

99
// REQUIRES: executable_test
1010
// XFAIL: OS=windows-msvc
@@ -44,7 +44,7 @@ extension GenericStruct: @retroactive Hello where T == String {
4444
}
4545
}
4646

47-
// CHECK-STDERR: Warning: 'main.GenericSubClass<Swift.String>' conforms to protocol 'Hello', but it also inherits conformance from 'Def.GenericSuperClass<Swift.String>'. Relying on a particular conformance is undefined behaviour.
47+
// CHECK-STDERR: Warning: 'main.GenericSubClass<Swift.{{Int|String}}>' conforms to protocol 'Hello', but it also inherits conformance from 'Def.GenericSuperClass<Swift.{{Int|String}}>'. Relying on a particular conformance is undefined behaviour.
4848
// CHECK: Hello from main
4949
(GenericStruct<String>() as Any as! Hello).hello()
5050

0 commit comments

Comments
 (0)