Skip to content

Commit c814fe3

Browse files
committed
Generalize test to cover Windows and remove the forked version
1 parent 5d57647 commit c814fe3

File tree

2 files changed

+2
-178
lines changed

2 files changed

+2
-178
lines changed

test/Interop/Cxx/class/type-classification-non-trivial-silgen-windows.swift

Lines changed: 0 additions & 176 deletions
This file was deleted.

test/Interop/Cxx/class/type-classification-non-trivial-silgen.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ public func testStructWithSubobjectCopyConstructorAndValue() -> Bool {
9292
// CHECK: [[AS:%.*]] = alloc_stack [lexical] [var_decl] $StructWithCopyConstructorAndSubobjectCopyConstructorAndValue
9393
// CHECK: [[MEMBER_1:%.*]] = alloc_stack $StructWithCopyConstructorAndValue
9494
// CHECK: copy_addr [[MEMBER_0]] to [init] [[MEMBER_1]] : $*StructWithCopyConstructorAndValue
95-
// CHECK: [[FN:%.*]] = function_ref @$sSo037StructWithCopyConstructorAndSubobjectcdE5ValueVyABSo0abcdeG0VcfCTo : $@convention(c) (@in_cxx StructWithCopyConstructorAndValue) -> @out StructWithCopyConstructorAndSubobjectCopyConstructorAndValue
96-
// CHECK: apply [[FN]]([[AS]], [[MEMBER_1]]) : $@convention(c) (@in_cxx StructWithCopyConstructorAndValue) -> @out StructWithCopyConstructorAndSubobjectCopyConstructorAndValue
95+
// CHECK: [[FN:%.*]] = function_ref @$sSo037StructWithCopyConstructorAndSubobjectcdE5ValueVyABSo0abcdeG0VcfCTo : $@convention(c) (@in{{(_cxx)?}} StructWithCopyConstructorAndValue) -> @out StructWithCopyConstructorAndSubobjectCopyConstructorAndValue
96+
// CHECK: apply [[FN]]([[AS]], [[MEMBER_1]]) : $@convention(c) (@in{{(_cxx)?}} StructWithCopyConstructorAndValue) -> @out StructWithCopyConstructorAndSubobjectCopyConstructorAndValue
9797
// CHECK: [[OBJ_MEMBER_ADDR:%.*]] = struct_element_addr [[AS]] : $*StructWithCopyConstructorAndSubobjectCopyConstructorAndValue, #StructWithCopyConstructorAndSubobjectCopyConstructorAndValue.member
9898
// CHECK: [[MEMBER_2:%.*]] = alloc_stack $StructWithCopyConstructorAndValue
9999
// CHECK: copy_addr [[OBJ_MEMBER_ADDR]] to [init] [[MEMBER_2]] : $*StructWithCopyConstructorAndValue

0 commit comments

Comments
 (0)