Skip to content

Commit d32facc

Browse files
committed
Gardening: Migrate test suite to GH issues (file names): Constraints
1 parent e27ea12 commit d32facc

25 files changed

+11
-11
lines changed
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))
File renamed without changes.

0 commit comments

Comments
 (0)