[C++11] Switch autoconf and make to use C++11 by default. Now both build
[oota-llvm.git] / test / Feature / prototype.ll
index 9bab73f7fb7e2896e330ae129acfa66c4f0f6493..3754a1d9596e9fc0e911a020cae302cbef1cc7d7 100644 (file)
@@ -1,14 +1,11 @@
-; RUN: llvm-upgrade < %s | llvm-as | 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
 
-implementation
+declare i32 @bar(i32)
 
-declare int "bar"(int %in) 
-
-int "foo"(int %blah)
-begin
-  %xx = call int %bar(int %blah)
-  ret int %xx
-end
+define i32 @foo(i32 %blah) {
+        %xx = call i32 @bar( i32 %blah )                ; <i32> [#uses=1]
+        ret i32 %xx
+}