Skip to content

Commit c00c762

Browse files
committed
[tests] Fix SILGen tests to have Windows mangling
1 parent 4f72147 commit c00c762

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/Interop/Cxx/class/method/methods-silgen.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import Methods
44

55
// clang name: ReferenceParams::ReferenceParams
6-
// CHECK: sil [clang ReferenceParams.init] @_ZN15ReferenceParamsC1ERKiS1_ : $@convention(c) (@in_guaranteed Int32, @in_guaranteed Int32) -> @out ReferenceParams
6+
// CHECK: sil [clang ReferenceParams.init] @{{_ZN15ReferenceParamsC1ERKiS1_|\?\?0ReferenceParams@@QEAA@AEBH0@Z}} : $@convention(c) (@in_guaranteed Int32, @in_guaranteed Int32) -> @out ReferenceParams
77

88
// clang name: ReferenceParams::staticMethod
9-
// CHECK: sil [clang ReferenceParams.staticMethod] @_ZN15ReferenceParams12staticMethodERKiS1_ : $@convention(c) (@in_guaranteed Int32, @in_guaranteed Int32) -> ()
9+
// CHECK: sil [clang ReferenceParams.staticMethod] @{{_ZN15ReferenceParams12staticMethodERKiS1_|\?staticMethod@ReferenceParams@@SAXAEBH0@Z}} : $@convention(c) (@in_guaranteed Int32, @in_guaranteed Int32) -> ()
1010

1111
public func use() {
1212
let a = CInt(42)

test/Interop/Cxx/reference/const-ref-parameter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ func testFunction() {
5252
// CHECK-NEXT: apply [[FN4]]
5353
// CHECK-SAME: : $@convention(objc_method) (@in_guaranteed OptionsStruct, @objc_metatype OptionsConsumerObjC.Type) -> Int32
5454

55-
// CHECK: [[FN5:%[0-9]+]] = function_ref @_ZN18OptionsConsumerCxxC1ERK13OptionsStruct : $@convention(c) (OptionsStruct) -> @out OptionsConsumerCxx
55+
// CHECK: [[FN5:%[0-9]+]] = function_ref @_ZN18OptionsConsumerCxxC1ERK13OptionsStruct : $@convention(c) (@in_guaranteed OptionsStruct) -> @out OptionsConsumerCxx
5656
// CHECK-NEXT: apply [[FN5]]
57-
// CHECK-SAME: : $@convention(c) (OptionsStruct) -> @out OptionsConsumerCxx
57+
// CHECK-SAME: : $@convention(c) (@in_guaranteed OptionsStruct) -> @out OptionsConsumerCxx
5858

5959
// CHECK: [[FN6:%[0-9]+]] = function_ref @_ZN18OptionsConsumerCxx12doOtherThingERK13OptionsStruct : $@convention(cxx_method) (@in_guaranteed OptionsStruct, @inout OptionsConsumerCxx) -> Float
6060
// CHECK-NEXT: apply [[FN6]]

test/Interop/Cxx/reference/reference-silgen-cxx-objc-ctors+init.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ var b = IntWrapper(a)
88
var c = ObjCSwiftBridge(embedded: b)
99

1010
// FIXME: the const-ref C++ Consructor here is not getting an @in_guaranteed or even an @in convention here.
11-
// CHECK: {{%[0-9]+}} = function_ref @_ZN10IntWrapperC1ERKi : $@convention(c) (Int32) -> @out IntWrapper
12-
// CHECK: {{%[0-9]+}} = apply {{%[0-9]+}}({{%[0-9]+}}, {{%[0-9]+}}) : $@convention(c) (Int32) -> @out IntWrapper
11+
// CHECK: {{%[0-9]+}} = function_ref @_ZN10IntWrapperC1ERKi : $@convention(c) (@in_guaranteed Int32) -> @out IntWrapper
12+
// CHECK: {{%[0-9]+}} = apply {{%[0-9]+}}({{%[0-9]+}}, {{%[0-9]+}}) : $@convention(c) (@in_guaranteed Int32) -> @out IntWrapper
1313
// CHECK: alloc_global @$s4main1cSo15ObjCSwiftBridgeCSgvp
1414
// CHECK: {{%[0-9]+}} = global_addr @$s4main1cSo15ObjCSwiftBridgeCSgvp : $*Optional<ObjCSwiftBridge>
1515
// CHECK: {{%[0-9]+}} = load {{%[0-9]+}} : $*IntWrapper

0 commit comments

Comments
 (0)