xref: /aosp_15_r20/external/llvm/test/tools/dsymutil/absolute_symbol.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerRUN: llvm-dsymutil -dump-debug-map -oso-prepend-path %p %p/Inputs/absolute_sym.macho.i386 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard WorkerThe tested object file has been created by the dummy Objective-C code:
4*9880d681SAndroid Build Coastguard Worker@interface Foo
5*9880d681SAndroid Build Coastguard Worker@end
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker@implementation Foo
8*9880d681SAndroid Build Coastguard Worker@end
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workerint main() { return 0; }
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workercompiled for i386. This create an absolute symbol .objc_class_name_Foo
13*9880d681SAndroid Build Coastguard WorkerWe must not consider this symbol for debug info linking as its address
14*9880d681SAndroid Build Coastguard Workermight conflict with other real symbols in the same file.
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard WorkerCHECK: objc_class_name_Foo
17*9880d681SAndroid Build Coastguard WorkerCHECK-NOT: objAddr
18