Chris Lattner | b9e7186 | 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 exists, but it really doesn't. |
Misha Brukman | edf4bab | 2003-09-16 15:29:54 +0000 | [diff] [blame] | 3 | ; RUN: llvm-as < %s | opt -funcresolve -instcombine | llvm-dis | grep '\.\.\.' | not grep call |
Chris Lattner | b9e7186 | 2002-05-24 21:27:41 +0000 | [diff] [blame] | 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 | } |