From 5756c16cdfc7be3cb4cc402c8bf8bae59b0ae35b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 17 Jun 2011 07:06:44 +0000 Subject: make the asmparser reject function and type redefinitions. 'Merging' hasn't been needed since llvm-gcc 3.4 days. llvm-svn: 133248 --- llvm/test/Feature/calltest.ll | 2 -- llvm/test/Feature/globalredefinition.ll | 18 ------------------ 2 files changed, 20 deletions(-) delete mode 100644 llvm/test/Feature/globalredefinition.ll (limited to 'llvm/test/Feature') diff --git a/llvm/test/Feature/calltest.ll b/llvm/test/Feature/calltest.ll index feafd3cd208..dcdb1a0ae11 100644 --- a/llvm/test/Feature/calltest.ll +++ b/llvm/test/Feature/calltest.ll @@ -4,8 +4,6 @@ %FunTy = type i32 (i32) -declare i32 @test(i32) ; Test forward declaration merging - define void @invoke(%FunTy* %x) { %foo = call i32 %x( i32 123 ) ; [#uses=0] %foo2 = tail call i32 %x( i32 123 ) ; [#uses=0] diff --git a/llvm/test/Feature/globalredefinition.ll b/llvm/test/Feature/globalredefinition.ll deleted file mode 100644 index 42e2d1aeee7..00000000000 --- a/llvm/test/Feature/globalredefinition.ll +++ /dev/null @@ -1,18 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis > %t1.ll -; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll -; RUN: diff %t1.ll %t2.ll - -; Test forward references and redefinitions of globals - -@A = global i32* @B ; [#uses=0] -@B = global i32 7 ; [#uses=1] - -declare void @X() - -declare void @X() - -define void @X() { - ret void -} - -declare void @X() -- cgit v1.2.3