Skip to content

Commit 0d921e3

Browse files
committed
[Test] InitAccessors/NFC: Fix SIL test not to expecte %18 as a result
1 parent d191ef8 commit 0d921e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/SIL/init_accessors.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// RUN: %target-swift-frontend -emit-sil -enable-experimental-feature InitAccessors %s | %FileCheck %s
1+
// RUN: %target-swift-frontend -Onone -emit-sil -enable-experimental-feature InitAccessors %s | %FileCheck %s
2+
3+
// REQUIRES: asserts
24

35
struct TestInit {
46
var x: Int
@@ -66,7 +68,7 @@ struct TestSetter {
6668
// CHECK-LABEL: sil hidden @$s14init_accessors10TestSetterV1x1yACSi_SitcfC : $@convention(method) (Int, Int, @thin TestSetter.Type) -> TestSetter
6769
// CHECK: [[SETTER_REF:%.*]] = function_ref @$s14init_accessors10TestSetterV5pointSi_Sitvs : $@convention(method) (Int, Int, @inout TestSetter) -> ()
6870
// CHECK-NEXT: [[SETTER_CLOSURE:%.*]] = partial_apply [callee_guaranteed] [[SETTER_REF]]([[SELF_VALUE:%.*]]) : $@convention(method) (Int, Int, @inout TestSetter) -> ()
69-
// CHECk-NEXT: %18 = apply [[SETTER_CLOSURE]](%0, %1) : $@callee_guaranteed (Int, Int) -> ()
71+
// CHECK-NEXT: {{.*}} = apply [[SETTER_CLOSURE]](%0, %1) : $@callee_guaranteed (Int, Int) -> ()
7072
init(x: Int, y: Int) {
7173
self.x = x
7274
self.y = y

0 commit comments

Comments
 (0)