Skip to content

Commit 0b72f18

Browse files
committed
[Test] Update CXX interop test to allow pointer types
This *should* be an opaque pointer, but just allow any pointer type here since it doesn't really matter.
1 parent 2aeec43 commit 0b72f18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Interop/Cxx/class/method/msvc-abi-return-indirect-trivial-record.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ public func test(_ result: VecStr) -> CInt {
5757
}
5858

5959
// CHECK: swiftcc i32 @"$s4Test4testys5Int32VSo0014vecstr_yuJCataVF"({{.*}} %[[RESULT:.*]])
60-
// CHECK: call void @"?begin@?$vec@Vstr@@@@QEBA?AVIt@@XZ"(ptr %[[RESULT]], ptr sret{{.*}}
60+
// CHECK: call void @"?begin@?$vec@Vstr@@@@QEBA?AVIt@@XZ"(%{{.*}}* %[[RESULT]], %{{.*}}* sret{{.*}}
6161

6262
public func passTempForIndirectRetToVoidCall() {
6363
var lhs = LoadableIntWrapper(value: 2)
6464
let rhs = LoadableIntWrapper(value: 2)
6565
lhs += rhs
6666
}
6767

68-
// CHECK: void @"$sSo18LoadableIntWrapperV2peoiyyABz_ABtFZ"(ptr
68+
// CHECK: void @"$sSo18LoadableIntWrapperV2peoiyyABz_ABtFZ"(%{{.*}}*
6969
// CHECK: %[[OPRESULT:.*]] = alloca %struct.LoadableIntWrapper, align 16
70-
// CHECK: call void @"??YLoadableIntWrapper@@QEAA?AU0@U0@@Z"(ptr {{.*}}, ptr sret(%struct.LoadableIntWrapper) %[[OPRESULT]], i32
70+
// CHECK: call void @"??YLoadableIntWrapper@@QEAA?AU0@U0@@Z"(%{{.*}}* {{.*}}, %{{.*}}* sret(%struct.LoadableIntWrapper) %[[OPRESULT]], i32

0 commit comments

Comments
 (0)