Update credits and fix sorting issue.
[llvm-complete.git] / test / Feature / unreachable.ll
blobde7beb93aeb52caed9e80beca3065bb3b403e3c6
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
6 implementation
8 declare void %bar()
10 int %foo() {  ;; Calling this function has undefined behavior
11         unreachable
14 double %xyz() {
15         call void %bar()
16         unreachable          ;; Bar must not return.