blob: a42dc27a1e70f09eab29e0edfd33b2f4fcd52ac2 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=c
Tanya Lattnercd0aa812004-11-06 21:40:51 +00002
Chris Lattnerf3b467c2003-05-13 20:11:21 +00003; This testcase breaks the C backend, because gcc doesn't like (...) functions
4; with no arguments at all.
5
Tanya Lattner53a66d12008-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
Chris Lattnerf3b467c2003-05-13 20:11:21 +000010}
Tanya Lattner53a66d12008-02-19 01:41:04 +000011