[mips] Move MipsTargetLowering::MipsCC::regSize() to MipsSubtarget::getGPRSizeInBytes()
[oota-llvm.git] / test / Feature / prototype.ll
index 6874ca6b53dc788a2c8cd2d2fffbd4a1321aac26..3754a1d9596e9fc0e911a020cae302cbef1cc7d7 100644 (file)
@@ -1,10 +1,11 @@
-implementation
+; 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 int "bar"(int %in) 
+declare i32 @bar(i32)
 
-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
+}