Chris Lattner | 77ff8fa | 2002-05-24 21:27:41 +0000 | [diff] [blame] | 1 | ; This shows where the function is called with the prototype indicating a |
| 2 | ; return type doesn't exists, but it really does. |
| 3 | ; |
Misha Brukman | e78760e | 2003-09-16 15:29:54 +0000 | [diff] [blame] | 4 | ; RUN: llvm-as < %s | opt -funcresolve -instcombine | llvm-dis | grep '\.\.\.' | not grep call |
Chris Lattner | 77ff8fa | 2002-05-24 21:27:41 +0000 | [diff] [blame] | 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 | } |