summaryrefslogtreecommitdiff
path: root/test/Linker/2003-05-31-LinkerRename.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-15 18:11:57 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-15 18:11:57 +0000
commitedca80b5e86363c6e4d5cfeedd6940d991355333 (patch)
tree7ad9627d022979aac2238fc48e005a3ff2104469 /test/Linker/2003-05-31-LinkerRename.ll
parentc3c65d09052483ef3571795b652e0d36aa9591b0 (diff)
downloadllvm-edca80b5e86363c6e4d5cfeedd6940d991355333.tar.gz
llvm-edca80b5e86363c6e4d5cfeedd6940d991355333.tar.bz2
llvm-edca80b5e86363c6e4d5cfeedd6940d991355333.tar.xz
For PR1319: Upgrade to new test harness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker/2003-05-31-LinkerRename.ll')
-rw-r--r--test/Linker/2003-05-31-LinkerRename.ll22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/Linker/2003-05-31-LinkerRename.ll b/test/Linker/2003-05-31-LinkerRename.ll
index 375c16017b..3e8b2c81bd 100644
--- a/test/Linker/2003-05-31-LinkerRename.ll
+++ b/test/Linker/2003-05-31-LinkerRename.ll
@@ -1,17 +1,17 @@
-; The funcresolve pass will (intentionally) llvm-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.
+; The funcresolve pass will (intentionally) llvm-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: echo "implementation internal int %foo() { ret int 7 }" | llvm-as > %t.1.bc
+; RUN: echo { define internal i32 @foo() \{ ret i32 7 \} } | llvm-as > %t.1.bc
; RUN: llvm-as < %s > %t.2.bc
-; RUN: llvm-link %t.[12].bc | llvm-dis | grep 'internal' | not grep '%foo('
+; RUN: llvm-link %t.1.bc %t.2.bc | llvm-dis | grep internal | not grep %foo(
-implementation
-declare int %foo()
+declare i32 @foo()
-int %test() {
- %X = call int %foo()
- ret int %X
+define i32 @test() {
+ %X = call i32 @foo()
+ ret i32 %X
}