Skip to content

Commit a52302d

Browse files
committed
Some misc fixes for tests.
1 parent 1d04df9 commit a52302d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

test/IRGen/Inputs/moveonly_split_module_source_input.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ class Klass {
77
public struct MoveOnly : ~Copyable {
88
var k = Klass()
99
var k2 = Klass()
10+
public init() {}
1011
deinit {
1112
print("==> I am in the deinit resiliently!")
1213
print("==> My name is \(k.name)")
1314
}
1415
}
1516
#else
16-
struct MoveOnly : ~Copyable {
17+
public struct MoveOnly : ~Copyable {
1718
var k = Klass()
1819
var k2 = Klass()
20+
public init() {}
1921
deinit {
2022
print("==> I am in the deinit!")
2123
print("==> My name is \(k.name)")

test/IRGen/moveonly_split_module_source_deinit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// Make sure we call the deinit through the value witness table in the other module.
77

8-
// REFERRING_MODULE-LABEL: define swiftcc void @"$s6serverAAV4mainyyKFZ"(%swift.refcounted* swiftself %0, %swift.error** noalias nocapture swifterror dereferenceable(8) %1) #0 {
8+
// REFERRING_MODULE-LABEL: define {{.*}}swiftcc void @"$s6serverAAV4mainyyKFZ"(%swift.refcounted* swiftself %0, %swift.error** noalias nocapture swifterror dereferenceable(8) %1) {{.*}}{
99
// REFERRING_MODULE: [[SERVER:%.*]] = alloca %T6server8MoveOnlyV
1010
// REFERRING_MODULE: [[VALUE_WITNESS_TABLE:%.*]] = getelementptr inbounds i8*, i8** %"$s6server8MoveOnlyVN.valueWitnesses"
1111
// REFERRING_MODULE: [[VALUE_WITNESS:%.*]] = load i8*, i8** [[VALUE_WITNESS_TABLE]]

test/Interpreter/moveonly_split_module_source_deinit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// RUN: %empty-directory(%t)
44
// RUN: %target-swiftc_driver -emit-module -module-name server -emit-module-path %t/server.swiftmodule %s %S/Inputs/moveonly_split_module_source_input.swift
5-
// RUN: %target-swiftc_driver -emit-executable -module-name server -emit-module-path %t/server.swiftmodule %s %S/Inputs/moveonly_split_module_source_input.swift -o %t/server -Xlinker -add_ast_path -Xlinker %t/server.swiftmodule -Xlinker -alias -Xlinker _server_main -Xlinker _main
5+
// RUN: %target-swiftc_driver -emit-executable -module-name server -emit-module-path %t/server.swiftmodule %s %S/Inputs/moveonly_split_module_source_input.swift -o %t/server
66
// RUN: %target-codesign %t/server
77
// RUN: %target-run %t/server | %FileCheck %s
88

0 commit comments

Comments
 (0)