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