Skip to content

Commit 628d7cb

Browse files
authored
Merge pull request #76554 from gottesmm/pr-d9a4a6b6e893d27d676abe189522c2c30e75bdbe
Remove an unnecessary extra FileCheck file in favor of using different FileCheck -check-prefix.
2 parents 0a42612 + 587cfc7 commit 628d7cb

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

test/Concurrency/Inputs/sending_interfacefile_printing_repr_filecheck

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend %s -typecheck -enable-library-evolution -parse-as-library -emit-module-interface-path - -module-name MyFile -swift-version 6 | %FileCheck %s
3-
// RUN: %target-swift-frontend %s -typecheck -enable-library-evolution -parse-as-library -emit-module-interface-path - -module-name MyFile -swift-version 6 -module-interface-preserve-types-as-written | %FileCheck %S/Inputs/sending_interfacefile_printing_repr_filecheck
3+
// RUN: %target-swift-frontend %s -typecheck -enable-library-evolution -parse-as-library -emit-module-interface-path - -module-name MyFile -swift-version 6 -module-interface-preserve-types-as-written | %FileCheck -check-prefix=CHECK-REPR %s
44

55
// The force printing type reprs option is only available in asserts builds.
66
// REQUIRES: asserts
@@ -11,26 +11,41 @@
1111

1212
public class NonSendableKlass {}
1313

14-
// The two possible outputs are MyFile.NonSendableKlass and NonSendableKlass.
15-
//
16-
// So we just check for an optional M
1714
// CHECK: #if compiler(>=5.3) && $SendingArgsAndResults
1815
// CHECK-NEXT: public func test() -> sending MyFile.NonSendableKlass
1916
// CHECK-NEXT: #else
2017
// CHECK-NEXT: public func test() -> MyFile.NonSendableKlass
2118
// CHECK-NEXT: #endif
19+
20+
// CHECK-REPR: #if compiler(>=5.3) && $SendingArgsAndResults
21+
// CHECK-REPR-NEXT: public func test() -> sending NonSendableKlass
22+
// CHECK-REPR-NEXT: #else
23+
// CHECK-REPR-NEXT: public func test() -> NonSendableKlass
24+
// CHECK-REPR-NEXT: #endif
2225
public func test() -> sending NonSendableKlass { NonSendableKlass() }
2326

2427
// CHECK: #if compiler(>=5.3) && $SendingArgsAndResults
2528
// CHECK-NEXT: public func test2(_ x: sending MyFile.NonSendableKlass)
2629
// CHECK-NEXT: #else
2730
// CHECK-NEXT: public func test2(_ x: __owned MyFile.NonSendableKlass)
2831
// CHECK-NEXT: #endif
32+
33+
// CHECK-REPR: #if compiler(>=5.3) && $SendingArgsAndResults
34+
// CHECK-REPR-NEXT: public func test2(_ x: sending NonSendableKlass)
35+
// CHECK-REPR-NEXT: #else
36+
// CHECK-REPR-NEXT: public func test2(_ x: __owned NonSendableKlass)
37+
// CHECK-REPR-NEXT: #endif
2938
public func test2(_ x: sending NonSendableKlass) {}
3039

3140
// CHECK: #if compiler(>=5.3) && $SendingArgsAndResults
3241
// CHECK-NEXT: @_Concurrency.MainActor public var closure: () -> sending MyFile.NonSendableKlass
3342
// CHECK-NEXT: #else
3443
// CHECK-NEXT: @_Concurrency.MainActor public var closure: () -> MyFile.NonSendableKlass
3544
// CHECK-NEXT: #endif
45+
46+
// CHECK-REPR: #if compiler(>=5.3) && $SendingArgsAndResults
47+
// CHECK-REPR-NEXT: @_Concurrency.MainActor public var closure: () -> sending NonSendableKlass
48+
// CHECK-REPR-NEXT: #else
49+
// CHECK-REPR-NEXT: @_Concurrency.MainActor public var closure: () -> NonSendableKlass
50+
// CHECK-REPR-NEXT: #endif
3651
@MainActor public var closure: () -> sending NonSendableKlass = { NonSendableKlass() }

0 commit comments

Comments
 (0)