Chris Lattner | 48e989e | 2002-11-10 03:35:43 +0000 | [diff] [blame] | 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 | ; |
Chris Lattner | 0e60941 | 2003-06-19 17:02:06 +0000 | [diff] [blame^] | 6 | ; RUN: if as < %s | opt -funcresolve -instcombine | dis | grep '\.\.\.' |
Chris Lattner | 48e989e | 2002-11-10 03:35:43 +0000 | [diff] [blame] | 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 | } |