Skip to content

Commit d470eaa

Browse files
committed
Add regression test for swiftlang#56024 crasher
1 parent ad8a1eb commit d470eaa

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)