Redefinition of functions is no longer permitted.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 7 Jan 2007 19:33:49 +0000 (19:33 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 7 Jan 2007 19:33:49 +0000 (19:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33000 91177308-0d34-0410-b5e6-96231b3b80d8

test/Feature/calltest.ll
test/Feature/instructions.ll

index 090e840007e37395de37bc3fec31582990dce3d4..f015223c5d75acc528b219579303be9b92bad1bb 100644 (file)
@@ -4,8 +4,7 @@
 
 %FunTy = type int(int)
 
-declare int "test"(...)   ; Test differences of prototype
-declare int "test"()      ; Differ only by vararg
+declare int "test"(int)   ; Test forward declaration merging
 
 implementation
 
index 281dafb5a20663e0ae0711d9ec6224f59af84fe2..68674917751b50e0b888218887effa6375fdbeaa 100644 (file)
@@ -12,13 +12,13 @@ uint %test_extractelement(<4 x uint> %V) {
         ret <4 x uint> %R
 }
 
-<4 x uint> %test_shufflevector(<4 x uint> %V) {
+<4 x uint> %test_shufflevector_u(<4 x uint> %V) {
         %R = shufflevector <4 x uint> %V, <4 x uint> %V, 
                   <4 x uint> < uint 1, uint undef, uint 7, uint 2>
         ret <4 x uint> %R
 }
 
-<4 x float> %test_shufflevector(<4 x float> %V) {
+<4 x float> %test_shufflevector_f(<4 x float> %V) {
         %R = shufflevector <4 x float> %V, <4 x float> undef, 
                   <4 x uint> < uint 1, uint undef, uint 7, uint 2>
         ret <4 x float> %R