New testcase
[oota-llvm.git] / test / Transforms / FunctionResolve / 2002-11-09-ExternFn.ll
1 ; RUN: if as < %s | opt -funcresolve > /dev/null
2 ; RUN: then echo "opt ok"
3 ; RUN: else exit 1   # Make sure opt doesn't abort!
4 ; RUN: fi
5 ;
6 ; RUN: if as < %s | opt -funcresolve | dis | grep '\.\.\.'
7 ; RUN: then exit 1
8 ; RUN: else exit 0
9 ; RUN: fi
10
11 declare int %foo(...)
12 declare int %foo(int)
13
14 void %bar() {
15         call int(...)* %foo(int 7)
16         ret void
17 }