1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o 3# RUN: %lld -platform_version macos 10.14.1 10.15 -o %t %t.o 4# RUN: llvm-objdump --macho --all-headers %t | FileCheck %s 5 6# CHECK: cmd LC_BUILD_VERSION 7# CHECK-NEXT: cmdsize 32 8# CHECK-NEXT: platform macos 9# CHECK-NEXT: sdk 10.15 10# CHECK-NEXT: minos 10.14.1 11# CHECK-NEXT: ntools 1 12# CHECK-NEXT: tool ld 13# CHECK-NEXT: version {{[0-9\.]+}} 14# CHECK-NEXT: Load command [[#]] 15 16.text 17.global _main 18_main: 19 mov $0, %eax 20 ret 21