llvm-6502/test/Transforms/FunctionAttrs/noreturn.ll

19 lines
362 B
LLVM
Raw Normal View History

; RUN: opt < %s -functionattrs -instcombine -S | FileCheck %s
define void @endless_loop() noreturn nounwind readnone ssp uwtable {
entry:
br label %while.body
while.body:
br label %while.body
}
;CHECK-LABEL: @main(
;CHECK: endless_loop
;CHECK: ret
define i32 @main() noreturn nounwind ssp uwtable {
entry:
tail call void @endless_loop()
unreachable
}