[WebAssembly] Remove .import printing.
[oota-llvm.git] / test / Linker / 2003-05-31-LinkerRename.ll
index ac11f190f6a679aee0f2d3405d5e4fd8b405bd88..f511be1bf22f1d1cbcf6e14f553d157b25db2de3 100644 (file)
@@ -1,17 +1,21 @@
-; The funcresolve pass will (intentionally) link an _internal_ function body with an
-; external declaration.  Because of this, if we LINK an internal function body into
-; a program that already has an external declaration for the function name, we must
-; rename the internal function to something that does not conflict.
+; RUN: llvm-link %S/Inputs/2003-05-31-LinkerRename.ll %s -S | FileCheck %s
 
-; RUN: echo "implementation internal int %foo() { ret int 7 }" | as > %t.1.bc
-; RUN: as < %s > %t.2.bc
-; RUN: link %t.[12].bc | dis | grep 'internal' | not grep '%foo('
+; CHECK: @bar = global i32 ()* @foo.2
 
-implementation
-declare int %foo() 
+; CHECK:      define internal i32 @foo.2() {
+; CHECK-NEXT:   ret i32 7
+; CHECK-NEXT: }
 
-int %test() { 
-  %X = call int %foo()
-  ret int %X
-}
+; CHECK:      define i32 @test() {
+; CHECK-NEXT:   %X = call i32 @foo()
+; CHECK-NEXT:   ret i32 %X
+; CHECK-NEXT: }
+
+; CHECK: declare i32 @foo()
 
+declare i32 @foo()
+
+define i32 @test() {
+  %X = call i32 @foo()
+  ret i32 %X
+}