blob: 2a4e839d737c70bdd8a7e1a6f552685be223f9f6 [file] [log] [blame]
Tanya Lattner53a66d12008-02-19 01:41:04 +00001; RUN: llvm-as < %s | llc -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