xref: /aosp_15_r20/external/llvm/test/Other/llvm-nm-without-aliases.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as < %s > %t
2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-nm -without-aliases - < %t | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker; RUN: llvm-nm - < %t | FileCheck --check-prefix=WITH %s
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: T a0bar
6*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: T a0foo
7*9880d681SAndroid Build Coastguard Worker; CHECK: T bar
8*9880d681SAndroid Build Coastguard Worker; CHECK: T foo
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker; WITH: T a0bar
11*9880d681SAndroid Build Coastguard Worker; WITH: T a0foo
12*9880d681SAndroid Build Coastguard Worker; WITH: T bar
13*9880d681SAndroid Build Coastguard Worker; WITH: T foo
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker@a0foo = alias void (), void ()* @foo
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Workerdefine void @foo() {
18*9880d681SAndroid Build Coastguard Worker  ret void
19*9880d681SAndroid Build Coastguard Worker}
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker@a0bar = alias void (), void ()* @bar
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Workerdefine void @bar() {
24*9880d681SAndroid Build Coastguard Worker  ret void
25*9880d681SAndroid Build Coastguard Worker}
26