Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=c |
2 | |||||
3 | ; This testcase breaks the C backend, because gcc doesn't like (...) functions | ||||
4 | ; with no arguments at all. | ||||
5 | |||||
6 | void %test(long %Ptr) { | ||||
7 | %P = cast long %Ptr to void(...) * | ||||
8 | call void(...)* %P(long %Ptr) | ||||
9 | ret void | ||||
10 | } |