diff options
author | Chris Lattner <sabre@nondot.org> | 2011-06-17 07:06:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-06-17 07:06:44 +0000 |
commit | 5756c16cdfc7be3cb4cc402c8bf8bae59b0ae35b (patch) | |
tree | 4ba257d62efe0fd6c4dafe2875f174a371af97fe /llvm/test/Feature | |
parent | 59345c8b658a2203bb9fc232ce3b92d2fc9c12ae (diff) | |
download | bcm5719-llvm-5756c16cdfc7be3cb4cc402c8bf8bae59b0ae35b.tar.gz bcm5719-llvm-5756c16cdfc7be3cb4cc402c8bf8bae59b0ae35b.zip |
make the asmparser reject function and type redefinitions. 'Merging' hasn't been
needed since llvm-gcc 3.4 days.
llvm-svn: 133248
Diffstat (limited to 'llvm/test/Feature')
-rw-r--r-- | llvm/test/Feature/calltest.ll | 2 | ||||
-rw-r--r-- | llvm/test/Feature/globalredefinition.ll | 18 |
2 files changed, 0 insertions, 20 deletions
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 ) ; <i32> [#uses=0] %foo2 = tail call i32 %x( i32 123 ) ; <i32> [#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 ; <i32**> [#uses=0] -@B = global i32 7 ; <i32*> [#uses=1] - -declare void @X() - -declare void @X() - -define void @X() { - ret void -} - -declare void @X() |