433f5bb79b58a818945524bb41277f99ed3377b1
[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-as < %s | 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 }