Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / CodeGen / CBackend / 2003-05-13-VarArgFunction.ll
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 }