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