Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / FunctionResolve / retmismatch1.ll
1 ; This shows where the function is called with the prototype indicating a
2 ; return type exists, but it really doesn't.
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -funcresolve -instcombine | llvm-dis | grep '\.\.\.' | not grep call
4
5 declare int %foo(...)
6
7 void %foo(int %x, float %y) {
8         ret void
9 }
10
11 int %bar() {
12         %x = call int(...)* %foo(double 12.5, int 48)
13         ret int %x
14 }