Relax dwarf line fragments. This fixes a crash in the included testcase.
[oota-llvm.git] / test / CodeGen / Generic / call-ret42.ll
index 3501288ab4b59a974cadbe09167c20f88cb0ee2e..95cc28625aa6a7627185b2b17f3feb0ae42edc76 100644 (file)
@@ -1,8 +1,10 @@
-int %foo(int %x) {
-  ret int 42
+; RUN: llc < %s
+
+define i32 @foo(i32 %x) {
+        ret i32 42
 }
 
-int %main() {  
-  %r = call int %foo(int 15) 
-  ret int %r
+define i32 @main() {
+        %r = call i32 @foo( i32 15 )            ; <i32> [#uses=1]
+        ret i32 %r
 }