1// RUN: llvm-mc -triple x86_64-apple-macosx10.10.0 %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s 2// RUN: llvm-mc -triple x86_64-apple-ios8.0.0 %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-IOS 3// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-DARWIN 4 5// Test version-min load command should be inferred from triple and should always be generated on Darwin 6// CHECK: Load command 7// CHECK: cmd LC_VERSION_MIN_MACOSX 8// CHECK: cmdsize 16 9// CHECK: version 10.10 10 11// CHECK-IOS: Load command 12// CHECK-IOS: cmd LC_VERSION_MIN_IPHONEOS 13// CHECK-IOS: cmdsize 16 14// CHECK-IOS: version 8.0 15 16// CHECK-DARWIN-NOT: LC_VERSION_MIN 17 18 19// RUN: llvm-mc -triple x86_64-apple-watchos1.0.0 %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-WATCHOS 20// RUN: llvm-mc -triple x86_64-apple-tvos8.0.0 %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-TVOS 21// CHECK-WATCHOS: Load command 22// CHECK-WATCHOS: cmd LC_VERSION_MIN_WATCHOS 23// CHECK-WATCHOS-NEXT: cmdsize 16 24// CHECK-WATCHOS-NEXT: version 1.0 25 26// CHECK-TVOS: cmd LC_VERSION_MIN_TVOS 27// CHECK-TVOS-NEXT: cmdsize 16 28// CHECK-TVOS-NEXT: version 8.0 29 30// CHECK-BRIDGEOS: cmd LC_BUILD_VERSION 31// CHECK-BRIDGEOS-NEXT: cmdsize 24 32// CHECK-BRIDGEOS-NEXT: platform bridgeos 33// CHECK-BRIDGEOS-NEXT: sdk n/a 34// CHECK-BRIDGEOS-NEXT: minos 2.0 35// CHECK-BRIDGEOS-NEXT: ntools 0 36