Expose "noduplicate" attribute as a property for intrinsics.
[oota-llvm.git] / test / Feature / unreachable.ll
index de7beb93aeb52caed9e80beca3065bb3b403e3c6..8bffb4c10e7fc5d0c8f5dede0a148f94a8ff762c 100644 (file)
@@ -1,17 +1,15 @@
-; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as < %s | llvm-dis > %t1.ll
 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 ; RUN: diff %t1.ll %t2.ll
 
+declare void @bar()
 
-implementation
-
-declare void %bar()
-
-int %foo() {  ;; Calling this function has undefined behavior
-       unreachable
+define i32 @foo() {
+        unreachable
 }
 
-double %xyz() {
-       call void %bar()
-       unreachable          ;; Bar must not return.
+define double @xyz() {
+        call void @bar( )
+        unreachable
 }
+