Skip to content

Commit a361eab

Browse files
committed
Test: get to "hello world"
1 parent 59050f7 commit a361eab

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

test/Inputs/Swiftskell.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ extension Maybe: Copyable {}
6767
extension Maybe: Show where Value: Show & ~Copyable {
6868
public borrowing func show() -> String {
6969
switch self {
70-
case let .just(borrowing elm):
70+
case let .just(elm):
7171
return elm.show()
7272
case .nothing:
7373
return "<nothing>"
@@ -78,9 +78,9 @@ extension Maybe: Show where Value: Show & ~Copyable {
7878
extension Maybe: Eq where Value: Eq, Value: ~Copyable {
7979
public static func ==(_ a: borrowing Self, _ b: borrowing Self) -> Bool {
8080
switch a {
81-
case let .just(borrowing a1):
81+
case let .just(a1):
8282
switch b {
83-
case let .just(borrowing b1):
83+
case let .just(b1):
8484
return a1 == b1
8585
case .nothing:
8686
return false

test/Interpreter/moveonly_swiftskell.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
// RUN: %empty-directory(%t)
22

33
// RUN: %target-build-swift \
4+
// RUN: -emit-module \
45
// RUN: -emit-module-path %t \
56
// RUN: -enable-library-evolution \
67
// RUN: -module-name Swiftskell \
78
// RUN: -parse-as-library \
8-
// RUN: %S/../Inputs/Swiftskell.swift -c -o %t/Swiftskell.o \
9+
// RUN: %S/../Inputs/Swiftskell.swift \
10+
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
911
// RUN: -enable-experimental-feature NonescapableTypes
1012

11-
// RUN: %target-build-swift -o %t/a.out %s -I %t %t/Swiftskell.o
13+
// RUN: %target-build-swift %s -I %t -o %t/a.out
1214
// RUN: %target-codesign %t/a.out
1315
// RUN: %target-run %t/a.out | %FileCheck %s
1416

0 commit comments

Comments
 (0)