blob: d8dde7963e72d8608d8ee90ba2d87a497f9f64e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
; 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(...)
|