aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/extern_weak.ll
blob: 01e32aae08ca4a3ccf4f710c7a4a57f69b83f19d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llc < %s -mtriple=i686-apple-darwin | grep weak_reference | count 2

@Y = global i32 (i8*)* @X               ; <i32 (i8*)**> [#uses=0]

declare extern_weak i32 @X(i8*)

define void @bar() {
        tail call void (...)* @foo( )
        ret void
}

declare extern_weak void @foo(...)