Skip to content

Commit 997ace4

Browse files
authored
Merge pull request swiftlang#58562 from AnthonyLatsis/sr13589
Add regression test for swiftlang#56024 crasher
2 parents fb01667 + d470eaa commit 997ace4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// RUN: %target-swift-emit-silgen %s
2+
3+
// https://github.com/apple/swift/issues/56024
4+
5+
public var UNIMPLEMENTED: Never { fatalError("UNIMPLEMENTED") }
6+
7+
public func UNIMPLEMENTED(
8+
function: String = #function,
9+
file: StaticString = #file,
10+
line: UInt = #line
11+
) -> Never {
12+
fatalError("UNIMPLEMENTED ← \(function)", file: file, line: line)
13+
}
14+
15+
public struct Test {
16+
public func foo() throws -> UnkeyedDecodingContainer {
17+
UNIMPLEMENTED()
18+
}
19+
}

0 commit comments

Comments
 (0)