diff options
Diffstat (limited to 'llvm/test/Linker/2003-10-27-LinkOncePromote.ll')
-rw-r--r-- | llvm/test/Linker/2003-10-27-LinkOncePromote.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Linker/2003-10-27-LinkOncePromote.ll b/llvm/test/Linker/2003-10-27-LinkOncePromote.ll new file mode 100644 index 00000000000..617e5c6ebda --- /dev/null +++ b/llvm/test/Linker/2003-10-27-LinkOncePromote.ll @@ -0,0 +1,8 @@ +; The linker should merge link-once globals into strong external globals, +; just like it does for weak symbols! + +; RUN: echo "%X = global int 7" | llvm-upgrade | llvm-as > %t.2.bc +; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc +; RUN: llvm-link %t.[12].bc + +%X = linkonce global int 7 |