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 | d589099eec8d120b5a7227072c4e717856e2276f (patch) | |
tree | 4d87ce41a738f60f8c6df1df4895d22c6293510c /test/Feature | |
parent | 424545e9509318e56be88021babec26cbfab8cc8 (diff) | |
download | external_llvm-d589099eec8d120b5a7227072c4e717856e2276f.zip external_llvm-d589099eec8d120b5a7227072c4e717856e2276f.tar.gz external_llvm-d589099eec8d120b5a7227072c4e717856e2276f.tar.bz2 |
make the asmparser reject function and type redefinitions. 'Merging' hasn't been
needed since llvm-gcc 3.4 days.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-rw-r--r-- | test/Feature/calltest.ll | 2 | ||||
-rw-r--r-- | test/Feature/globalredefinition.ll | 18 |
2 files changed, 0 insertions, 20 deletions
diff --git a/test/Feature/calltest.ll b/test/Feature/calltest.ll index feafd3c..dcdb1a0 100644 --- a/test/Feature/calltest.ll +++ b/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/test/Feature/globalredefinition.ll b/test/Feature/globalredefinition.ll deleted file mode 100644 index 42e2d1a..0000000 --- a/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() |