Skip to content

Commit 9e07e69

Browse files
Merge pull request #61176 from AnthonyLatsis/migrate-test-suite-to-gh-issues-29
Gardening: Migrate test suite to GH issues p. 29
2 parents 1b71154 + 1feed1d commit 9e07e69

File tree

82 files changed

+56
-54
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+56
-54
lines changed

test/Concurrency/sr15049.swift renamed to test/Concurrency/issue-57376.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %target-typecheck-verify-swift -disable-availability-checking -strict-concurrency=targeted
22
// REQUIRES: concurrency
33

4+
// https://github.com/apple/swift/issues/57376
5+
46
func testAsyncSequenceTypedPatternSendable<Seq: AsyncSequence>(_ seq: Seq) async throws where Seq.Element == Int, Seq: Sendable {
57
async let result: Int = seq.reduce(0) { $0 + $1 } // OK
68
// expected-warning@-1{{immutable value 'result' was never used; consider replacing with '_' or removing it}}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
// RUN: %target-swift-emit-silgen %s -verify | %FileCheck %s
1+
// RUN: %target-swift-emit-silgen %s -verify -module-name M | %FileCheck %s
22

33
// https://github.com/apple/swift/issues/45309
44

55
func f<T>(_: () -> T) {}
66
func f<T>(_: @autoclosure () -> T) {}
77

8-
// CHECK: function_ref @$s6sr27051fyyxyXElF
8+
// CHECK: function_ref @$s1M1fyyxyXElF
99
f { } // OK
1010

1111
func f1<T>(_: () -> T, _: () -> T) {}
1212
func f1<T>(_: @autoclosure () -> T, _: @autoclosure () -> T) {}
1313

14-
// CHECK: function_ref @$s6sr27052f1yyxyXE_xyXEtlF
14+
// CHECK: function_ref @$s1M2f1yyxyXE_xyXEtlF
1515
f1({}, {}) // OK
1616

1717
func f2<T>(_: () -> T, _: () -> T) { }
1818
func f2<T>(_: () -> T, _: @autoclosure () -> T) { }
1919

20-
// CHECK: function_ref @$s6sr27052f2yyxyXE_xyXEtlF
20+
// CHECK: function_ref @$s1M2f2yyxyXE_xyXEtlF
2121
f2({}, {}) // OK
2222

2323
func f3(_: () -> Int) {}
2424
func f3(_: @autoclosure () -> Int) {}
2525

26-
// CHECK: function_ref @$s6sr27052f3yySiyXEF
26+
// CHECK: function_ref @$s1M2f3yySiyXEF
2727
f3 { 0 } // OK
2828

2929
func autoclosure(f: () -> Int) { }
3030
func autoclosure(f: @autoclosure () -> Int) { }
3131
func autoclosure(f: Int) { }
3232

33-
// CHECK: function_ref @$s6sr270511autoclosure1fySiyXE_tF
33+
// CHECK: function_ref @$s1M11autoclosure1fySiyXE_tF
3434
autoclosure(f: { 0 }) // OK
3535

36-
// CHECK: function_ref @$s6sr27052fnyySiyXEF
36+
// CHECK: function_ref @$s1M2fnyySiyXEF
3737
let _ = autoclosure as (() -> (Int)) -> () // OK
3838

3939
func test(_: (@autoclosure () -> Int) -> Void) {}
4040
func test(_: (() -> Int) -> Void) {}
4141

4242
func fn(_: () -> Int) {}
4343

44-
// CHECK: function_ref @$s6sr27054testyyySiyXEXEF
44+
// CHECK: function_ref @$s1M4testyyySiyXEXEF
4545
test(fn) // OK
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/Constraints/sr9626.swift renamed to test/Constraints/issue-52072.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -emit-sil -verify %s | %FileCheck %s
1+
// RUN: %target-swift-frontend -emit-sil -verify -module-name M %s | %FileCheck %s
22

33
// https://github.com/apple/swift/issues/52072
44

@@ -15,10 +15,10 @@ func test2<T: BaseClass>(box: Box<T>) -> T.Type {
1515
return T.self
1616
}
1717

18-
// CHECK: [[F1:%.*]] = function_ref @$s6sr96263BoxVyACyxGxmcfC
18+
// CHECK: [[F1:%.*]] = function_ref @$s1M3BoxVyACyxGxmcfC
1919
// CHECK-NEXT: apply [[F1]]<SubClass>({{.*}}, {{.*}})
2020
_ = test1(box: .init(SubClass.self))
2121

22-
// CHECK: [[F2:%.*]] = function_ref @$s6sr96265test23boxxmAA3BoxVyxG_tAA9BaseClassCRbzlF
22+
// CHECK: [[F2:%.*]] = function_ref @$s1M5test23boxxmAA3BoxVyxG_tAA9BaseClassCRbzlF
2323
// CHECK-NEXT: apply [[F2]]<SubClass>({{.*}})
2424
_ = test2(box: .init(SubClass.self))

0 commit comments

Comments
 (0)