From 3f04773f7884c1c7b8b89dddfb177b1f41f54c56 Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Tue, 19 Feb 2008 01:41:04 +0000 Subject: Remove llvm-upgrade and update tests. llvm-svn: 47296 --- llvm/test/CodeGen/CBackend/2003-05-13-VarArgFunction.ll | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'llvm/test/CodeGen/CBackend/2003-05-13-VarArgFunction.ll') diff --git a/llvm/test/CodeGen/CBackend/2003-05-13-VarArgFunction.ll b/llvm/test/CodeGen/CBackend/2003-05-13-VarArgFunction.ll index 1e08b2d61f3..2a4e839d737 100644 --- a/llvm/test/CodeGen/CBackend/2003-05-13-VarArgFunction.ll +++ b/llvm/test/CodeGen/CBackend/2003-05-13-VarArgFunction.ll @@ -1,10 +1,11 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=c +; RUN: llvm-as < %s | llc -march=c ; This testcase breaks the C backend, because gcc doesn't like (...) functions ; with no arguments at all. -void %test(long %Ptr) { - %P = cast long %Ptr to void(...) * - call void(...)* %P(long %Ptr) - ret void +define void @test(i64 %Ptr) { + %P = inttoptr i64 %Ptr to void (...)* ; [#uses=1] + call void (...)* %P( i64 %Ptr ) + ret void } + -- cgit v1.2.3