12 lines
213 B
TypeScript
Raw Normal View History

var abortCalled = false;
@global
function abort(message: string | null, filename: string, line: i32, column: i32): void {
abortCalled = true;
}
assert(false, "this is ok");
if (!abortCalled)
unreachable();