xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i686-pc-linux-gnu | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker@__gthrw_pthread_once = weak alias i32 (i32*, void ()*), i32 (i32*, void ()*)* @pthread_once		; <i32 (i32*, void ()*)*> [#uses=0]
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine weak i32 @pthread_once(i32*, void ()*) {
6*9880d681SAndroid Build Coastguard Worker  ret i32 0
7*9880d681SAndroid Build Coastguard Worker}
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker; CHECK: .weak   pthread_once
10*9880d681SAndroid Build Coastguard Worker; CHECK: pthread_once:
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker; CHECK: .weak   __gthrw_pthread_once
13*9880d681SAndroid Build Coastguard Worker; CHECK: __gthrw_pthread_once = pthread_once
14