Add test case for apparently-fixed crasher

https://github.com/swiftlang/swift/issues/83011
This commit is contained in:
Slava Pestov
2025-07-14 19:44:06 -04:00
parent a4ad806319
commit 9ab2800168

View File

@@ -0,0 +1,15 @@
// RUN: %target-swift-emit-silgen %s
enum CustomError: Error {
case error
}
struct Test2<T> {
init(_: T) async throws(CustomError) {}
}
do {
_ = try await Test2(1)
} catch {
print("\(error)")
}