X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FFeature%2Fprototype.ll;h=3754a1d9596e9fc0e911a020cae302cbef1cc7d7;hb=55ec2218c448ef9e0d09b5534885b6d2a9786a73;hp=cea4f32b2b2b68371db571b9339e0aa1b264b3d5;hpb=21341d3108bfd5e79cb508a617cc6f1ef0bc720c;p=oota-llvm.git diff --git a/test/Feature/prototype.ll b/test/Feature/prototype.ll index cea4f32b2b2..3754a1d9596 100644 --- a/test/Feature/prototype.ll +++ b/test/Feature/prototype.ll @@ -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(int) %bar(int %blah) - ret int %xx -end +define i32 @foo(i32 %blah) { + %xx = call i32 @bar( i32 %blah ) ; [#uses=1] + ret i32 %xx +}