xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/extern_weak.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i686-apple-darwin | grep weak_reference | count 2
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker@Y = global i32 (i8*)* @X               ; <i32 (i8*)**> [#uses=0]
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdeclare extern_weak i32 @X(i8*)
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine void @bar() {
8*9880d681SAndroid Build Coastguard Worker        tail call void (...) @foo( )
9*9880d681SAndroid Build Coastguard Worker        ret void
10*9880d681SAndroid Build Coastguard Worker}
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerdeclare extern_weak void @foo(...)
13*9880d681SAndroid Build Coastguard Worker
14