1# RUN: not ld64.lld -arch x86_64 -source_version 10.blah %s -o %t 2>&1 | FileCheck %s --check-prefix=ERROR 2# RUN: ld64.lld -arch x86_64 -source_version 10.1.2.3.4 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml && llvm-objdump --private-headers %t | FileCheck %s 3 4--- !mach-o 5arch: x86_64 6file-type: MH_OBJECT 7flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] 8sections: 9 - segment: __TEXT 10 section: __text 11 type: S_REGULAR 12 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] 13 address: 0x0000000000000000 14 content: [ 0x00, 0x00, 0x00, 0x00 ] 15global-symbols: 16 - name: _main 17 type: N_SECT 18 scope: [ N_EXT ] 19 sect: 1 20 value: 0x0000000000000000 21... 22 23# ERROR: malformed source_version value 24 25# CHECK: Load command {{[0-9]*}} 26# CHECK: cmd LC_SOURCE_VERSION 27# CHECK: cmdsize 16 28# CHECK: version 10.1.2.3.4