NEw testcase
authorChris Lattner <sabre@nondot.org>
Thu, 30 Jan 2003 19:28:01 +0000 (19:28 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 30 Jan 2003 19:28:01 +0000 (19:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5438 91177308-0d34-0410-b5e6-96231b3b80d8

test/Linker/2003-01-30-LinkerRename.ll [new file with mode: 0644]

diff --git a/test/Linker/2003-01-30-LinkerRename.ll b/test/Linker/2003-01-30-LinkerRename.ll
new file mode 100644 (file)
index 0000000..4956f7c
--- /dev/null
@@ -0,0 +1,10 @@
+; This fails because the linker renames the external symbol not the internal 
+; one...
+
+; RUN: echo "implementation internal int %foo() { ret int 7 }" | as > Output/%s.1.bc
+; RUN: as < %s > Output/%s.2.bc
+; RUN: link Output/%s.[12].bc | dis | grep '%foo()' | grep -v internal
+
+implementation
+int %foo() { ret int 0 }
+