blob: a42dc27a1e70f09eab29e0edfd33b2f4fcd52ac2 [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -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