Files
swift-mirror/validation-test/compiler_crashers_2/a0b4d94ad0e977d0.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
435 B
Swift

// {"kind":"typecheck","signature":"swift::findSyntacticErrorForConsume(swift::ModuleDecl*, swift::SourceLoc, swift::Expr*, llvm::function_ref<swift::Type (swift::Expr*)>)","signatureAssert":"Assertion failed: (!isa<ConsumeExpr>(subExpr) && \"operates on the sub-expr of a consume\"), function findSyntacticErrorForConsume"}
// RUN: not --crash %target-swift-frontend -typecheck %s
func a(consume : String) {
consume consume consume