Skip to content

Commit 2fcf429

Browse files
committed
Run tests for the new 'try?' behavior with '-swift-version 5'
1 parent 919a2f4 commit 2fcf429

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/Parse/try.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift
1+
// RUN: %target-typecheck-verify-swift -swift-version 5
22

33
// Intentionally has lower precedence than assignments and ?:
44
infix operator %%%% : LowPrecedence

test/SILGen/errors.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-silgen -parse-stdlib -enable-sil-ownership -Xllvm -sil-print-debuginfo -verify -primary-file %s %S/Inputs/errors_other.swift | %FileCheck %s
1+
// RUN: %target-swift-emit-silgen -parse-stdlib -enable-sil-ownership -Xllvm -sil-print-debuginfo -verify -swift-version 5 -primary-file %s %S/Inputs/errors_other.swift | %FileCheck %s
22

33
// TODO: Turn back on ownership verification. I turned off the verification on
44
// this file since it shows an ownership error that does not affect
@@ -721,7 +721,7 @@ func testOptionalTryThatNeverThrows() {
721721
// CHECK-NEXT: bb0:
722722
// CHECK-NEXT: [[BOX:%.+]] = alloc_box ${ var Optional<Cat> }
723723
// CHECK-NEXT: [[PB:%.*]] = project_box [[BOX]]
724-
// CHECK: [[FN:%.+]] = function_ref @$S6errors10make_a_catAA3CatCyKF
724+
// CHECK: [[FN:%.+]] = function_ref @$s6errors10make_a_catAA3CatCyKF
725725
// CHECK-NEXT: try_apply [[FN]]() : $@convention(thin) () -> (@owned Cat, @error Error), normal [[SUCCESS:[^ ]+]], error [[CLEANUPS:[^ ]+]],
726726
// CHECK: [[SUCCESS]]([[VALUE:%.+]] : @owned $Cat)
727727
// CHECK-NEXT: [[CAT_ENUM:%.+]] = enum $Optional<Cat>, #Optional.some!enumelt.1

0 commit comments

Comments
 (0)