Skip to content

Commit f284be2

Browse files
authored
Merge pull request swiftlang#36107 from xedin/sr-14267-disable-testcase
[SILOptimizer] NFC: Disable `definite-init-wrongscope` test on Window…
2 parents ca0f638 + 8ebb6b5 commit f284be2

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

test/SILOptimizer/definite-init-wrongscope.swift

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: -sil-print-functions=$s3del1MC4fromAcA12WithDelegate_p_tKcfc \
44
// RUN: -Xllvm -sil-print-debuginfo -o /dev/null -module-name del 2>&1 | %FileCheck %s
55

6+
// Unsupported on Windows due to SR-14267
7+
// UNSUPPORTED: OS=windows-msvc
8+
69
public protocol DelegateA {}
710
public protocol DelegateB {}
811
public protocol WithDelegate
@@ -30,14 +33,14 @@ public class M {
3033

3134
// CHECK-LABEL: sil [ossa] @$s3del1MC4fromAcA12WithDelegate_p_tKcfc : $@convention(method) (@in WithDelegate, @owned M) -> (@owned M, @error Error)
3235

33-
// CHECK: [[I:%.*]] = integer_literal $Builtin.Int2, 1, loc {{.*}}:20:12, scope 3
34-
// CHECK: [[V:%.*]] = load [trivial] %2 : $*Builtin.Int2, loc {{.*}}:20:12, scope 3
35-
// CHECK: [[OR:%.*]] = builtin "or_Int2"([[V]] : $Builtin.Int2, [[I]] : $Builtin.Int2) : $Builtin.Int2, loc {{.*}}:20:12, scope 3
36-
// CHECK: store [[OR]] to [trivial] %2 : $*Builtin.Int2, loc {{.*}}:20:12, scope 3
37-
// CHECK: store %{{.*}} to [init] %{{.*}} : $*C, loc {{.*}}:23:20, scope 3
36+
// CHECK: [[I:%.*]] = integer_literal $Builtin.Int2, 1, loc {{.*}}:23:12, scope 3
37+
// CHECK: [[V:%.*]] = load [trivial] %2 : $*Builtin.Int2, loc {{.*}}:23:12, scope 3
38+
// CHECK: [[OR:%.*]] = builtin "or_Int2"([[V]] : $Builtin.Int2, [[I]] : $Builtin.Int2) : $Builtin.Int2, loc {{.*}}:23:12, scope 3
39+
// CHECK: store [[OR]] to [trivial] %2 : $*Builtin.Int2, loc {{.*}}:23:12, scope 3
40+
// CHECK: store %{{.*}} to [init] %{{.*}} : $*C, loc {{.*}}:26:20, scope 3
3841

3942
// Make sure the dealloc_stack gets the same scope of the instructions surrounding it.
4043

41-
// CHECK: destroy_addr %0 : $*WithDelegate, loc {{.*}}:26:5, scope 3
42-
// CHECK: dealloc_stack %2 : $*Builtin.Int2, loc {{.*}}:20:12, scope 3
43-
// CHECK: throw %{{.*}} : $Error, loc {{.*}}:20:12, scope 1
44+
// CHECK: destroy_addr %0 : $*WithDelegate, loc {{.*}}:29:5, scope 3
45+
// CHECK: dealloc_stack %2 : $*Builtin.Int2, loc {{.*}}:23:12, scope 3
46+
// CHECK: throw %{{.*}} : $Error, loc {{.*}}:23:12, scope 1

0 commit comments

Comments
 (0)