2007-12-19-InlineNoUnwind.ll 307 B

12345678910111213141516171819
  1. ; RUN: opt < %s -inline -S | grep nounwind
  2. ; RUN: opt < %s -inline -S | grep unreachable
  3. declare i1 @extern()
  4. define internal i32 @test() {
  5. entry:
  6. %n = call i1 @extern( )
  7. br i1 %n, label %r, label %u
  8. r:
  9. ret i32 0
  10. u:
  11. unreachable
  12. }
  13. define i32 @caller() {
  14. %X = call i32 @test( ) nounwind
  15. ret i32 %X
  16. }