xref: /llvm-project/llvm/test/tools/dsymutil/archive-timestamp.test (revision 0ed8194256c6c96875ed9dd102d15ee8a9260fec)
1# RUN: dsymutil -no-output -oso-prepend-path=%p -y %s 2>&1 | FileCheck -DMSG=%errc_ENOENT %s
2
3# RUN: dsymutil --linker parallel -no-output -oso-prepend-path=%p -y %s 2>&1 | FileCheck -DMSG=%errc_ENOENT %s
4
5# This is the archive member part of basic-archive.macho.x86_64 debug map with corrupted timestamps.
6
7# CHECK: warning: {{.*}}libbasic.a(basic2.macho.x86_64.o): [[MSG]]
8# CHECK: warning: {{.*}}libbasic.a(basic3.macho.x86_64.o): [[MSG]]
9
10---
11triple:          'x86_64-apple-darwin'
12objects:
13  - filename:        '/Inputs/libbasic.a(basic2.macho.x86_64.o)'
14    timestamp:       141869239
15    symbols:
16      - { sym: _foo, objAddr: 0x0000000000000020, binAddr: 0x0000000100000ED0, size: 0x00000050 }
17      - { sym: _private_int, objAddr: 0x0000000000000560, binAddr: 0x0000000100001004, size: 0x00000000 }
18      - { sym: _inc, objAddr: 0x0000000000000070, binAddr: 0x0000000100000F20, size: 0x00000017 }
19      - { sym: _baz, objAddr: 0x0000000000000310, binAddr: 0x0000000100001000, size: 0x00000000 }
20  - filename:        '/Inputs/libbasic.a(basic3.macho.x86_64.o)'
21    timestamp:       418692393
22    symbols:
23      - { sym: _val, objAddr: 0x0000000000000004, binAddr: 0x0000000100001008, size: 0x00000000 }
24      - { sym: _bar, objAddr: 0x0000000000000020, binAddr: 0x0000000100000F40, size: 0x00000050 }
25      - { sym: _inc, objAddr: 0x0000000000000070, binAddr: 0x0000000100000F90, size: 0x00000019 }
26...
27