mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
e383f522a4
Only force "extern" linkage if the function used to be a definition in the source module. Declarations keep their original linkage. llvm-svn: 265043
13 lines
369 B
LLVM
13 lines
369 B
LLVM
; Test that extern_weak linkage is preserved.
|
|
; RUN: llvm-split -o %t %s
|
|
; RUN: llvm-dis -o - %t0 | FileCheck %s
|
|
; RUN: llvm-dis -o - %t1 | FileCheck %s
|
|
|
|
; Both declarations are extern_weak in all partitions.
|
|
|
|
; CHECK: @x = extern_weak global i32, align 4
|
|
@x = extern_weak global i32, align 4
|
|
|
|
; CHECK: declare extern_weak void @f(...)
|
|
declare extern_weak void @f(...)
|