1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/CodeGen/CBackend/2003-05-13-VarArgFunction.ll

12 lines
316 B
LLVM
Raw Normal View History

; RUN: llvm-as < %s | llc -march=c
2004-11-06 22:40:51 +01:00
2003-05-13 22:11:21 +02:00
; This testcase breaks the C backend, because gcc doesn't like (...) functions
; with no arguments at all.
define void @test(i64 %Ptr) {
%P = inttoptr i64 %Ptr to void (...)* ; <void (...)*> [#uses=1]
call void (...)* %P( i64 %Ptr )
ret void
2003-05-13 22:11:21 +02:00
}