Skip to content

Commit 0821009

Browse files
committed
Fix test for Windows and add missing newline to header
1 parent 6ba560f commit 0821009

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Interop/C/struct/Inputs/module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ module StructAsOptionSet {
1313

1414
module NoncopyableStructs {
1515
header "noncopyable-struct.h"
16-
}
16+
}

test/Interop/C/struct/noncopyable_structs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func testNCWithDeinit() {
4848
// CHECK-SIL: [[SELF_ALLOC:%[0-9]+]] = alloc_stack $NonCopyableWithDeinit
4949
// CHECK-SIL: store [[SELF]] to [[SELF_ALLOC]]
5050
// CHECK-SIL: [[SELF_RELOAD:%[0-9]+]] = load [[SELF_ALLOC]]
51-
// CHECK-SIL: [[FN:%[0-9]+]] = function_ref @{{.*}}freeNonCopyableWithDeinit : $@convention(c) (NonCopyableWithDeinit) -> ()
51+
// CHECK-SIL: [[FN:%[0-9]+]] = function_ref @{{.*}}freeNonCopyableWithDeinit{{.*}} : $@convention(c) (NonCopyableWithDeinit) -> ()
5252
// CHECK-SIL: apply [[FN]]([[SELF_RELOAD]]) : $@convention(c) (NonCopyableWithDeinit) -> ()
5353

5454
// CHECK-IR-LABEL: define hidden swiftcc void @"$s19noncopyable_structs19consumeNCWithDeinityySo015NonCopyableWithE0VnF"

0 commit comments

Comments
 (0)