blob: 606f92f7dd44fac9aedb62b1d550ecf596dbe783 [file] [log] [blame]
Chris Lattner77ff8fa2002-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;
4; RUN: if as < %s | opt -funcresolve
5; RUN: then echo "opt ok"
6; RUN: else exit 1 # Make sure opt doesn't abort!
7; RUN: fi
8;
9; RUN: if as < %s | opt -funcresolve | dis | grep '\.\.\.' | grep call
10; 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}