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