blob: 2a4e839d737c70bdd8a7e1a6f552685be223f9f6 [file] [log] [blame]
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00001; RUN: llvm-as < %s | llc -march=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3; This testcase breaks the C backend, because gcc doesn't like (...) functions
4; with no arguments at all.
5
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00006define void @test(i64 %Ptr) {
7 %P = inttoptr i64 %Ptr to void (...)* ; <void (...)*> [#uses=1]
8 call void (...)* %P( i64 %Ptr )
9 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000011