blob: cffe1a4c9e7d3b419b008f57c6a6f5b3dfbb97cb [file] [log] [blame]
Chris Lattnerb9e71862002-05-24 21:27:41 +00001; This shows where the function is called with the prototype indicating a
2; return type doesn't exists, but it really does.
3;
Chris Lattner004965b2002-10-09 20:36:54 +00004; RUN: if as < %s | opt -funcresolve > /dev/null
Chris Lattnerb9e71862002-05-24 21:27:41 +00005; RUN: then echo "opt ok"
6; RUN: else exit 1 # Make sure opt doesn't abort!
7; RUN: fi
8;
Chris Lattner85b116a2003-06-19 17:02:06 +00009; RUN: if as < %s | opt -funcresolve -instcombine | dis | grep '\.\.\.' | grep call
Chris Lattnerb9e71862002-05-24 21:27:41 +000010; RUN: then exit 1
11; RUN: else exit 0
12; RUN: fi
13
14declare void %foo(...)
15
16int %foo(int %x, float %y) {
17 ret int %x
18}
19
20int %bar() {
21 call void (...)* %foo(double 12.5, int 48)
22 ret int 6
23}