Files
swift-mirror/validation-test/compiler_crashers_2/21fbeea5d06bd55.swift
Hamish Knight 760959f273 [test] Add assertion messages to crasher test cases
If the crasher hits an assertion failure, include the message in the
header.
2025-08-04 13:00:23 +01:00

5 lines
565 B
Swift

// {"kind":"typecheck","signature":"createEnumSwitch(swift::ASTContext&, swift::DeclContext*, swift::Expr*, swift::EnumDecl*, swift::EnumDecl*, bool, std::__1::function<std::__1::tuple<swift::EnumElementDecl*, swift::BraceStmt*> (swift::EnumElementDecl*, swift::EnumElementDecl*, llvm::ArrayRef<swift::VarDecl*>)>)","signatureAssert":"Assertion failed: (paramDecl->hasDefaultExpr()), function operator()"}
// RUN: not --crash %target-swift-frontend -typecheck %s
enum a : Codable { case x( x : Int b : Double enum XCodingKeys : CodingKey{
x case x case b let c = a