18 lines · plain
1; RUN: llc -mtriple=aarch64-win32 %s -o - | FileCheck %s2 3declare void @callee() noreturn4 5; Make sure the call isn't the last instruction in the function; if it is,6; unwinding may break.7;8; (The instruction after the call doesn't have to be anything in particular,9; but trapping has the nice side-effect of catching bugs.)10 11define void @test_unreachable() {12; CHECK-LABEL: test_unreachable:13; CHECK: bl callee14; CHECK-NEXT: brk #0x115 call void @callee() noreturn16 unreachable17}18