Skip to content

[spec] A case statement can end with noreturn expression evaluation #4293

@ntrel

Description

@ntrel

The docs mention throw and assert(0), but those both have type noreturn. A case statement can end with evaluating an expression statement of type noreturn, even if it is not the last case/default label in a switch. E.g. C abort(). The docs should say so.

PR incoming.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions