We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f17e64 commit 7c7a976Copy full SHA for 7c7a976
test/stdlib/Error.swift
@@ -115,7 +115,18 @@ ErrorTests.test("try!")
115
.code {
116
expectCrashLater()
117
let _: () = try! { throw SillyError.JazzHands }()
118
- }
+}
119
+
120
+ErrorTests.test("try!/location")
121
+ .skip(.custom({ _isFastAssertConfiguration() },
122
+ reason: "trap is not guaranteed to happen in -Ounchecked"))
123
+ .crashOutputMatches(_isDebugAssertConfiguration()
124
+ ? "test/stdlib/Error.swift, line 128"
125
+ : "")
126
+ .code {
127
+ expectCrashLater()
128
+ let _: () = try! { throw SillyError.JazzHands }()
129
130
131
ErrorTests.test("try?") {
132
var value = try? { () throws -> Int in return 1 }()
0 commit comments