unreachable_bt.ll 313 B

12345678910111213141516
  1. ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
  2. ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
  3. ; RUN: diff %t1.ll %t2.ll
  4. declare void @bar()
  5. define i9 @foo() { ;; Calling this function has undefined behavior
  6. unreachable
  7. }
  8. define double @xyz() {
  9. call void @bar()
  10. unreachable ;; Bar must not return.
  11. }