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. |
Chris Lattner | a6fee9d | 2003-06-28 23:23:34 +0000 | [diff] [blame] | 3 | ; RUN: as < %s | opt -funcresolve -instcombine | 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 | } |