1074af2daSAlexander Shaposhnikov## This test verifies that llvm-objcopy correctly handles min os version load commands. 2074af2daSAlexander Shaposhnikov## We use separate input files since one binary is not allowed to contain more than one 3074af2daSAlexander Shaposhnikov## load command of this type (LC_VERSION_MIN_IPHONEOS, LC_VERSION_MIN_MACOSX, 4074af2daSAlexander Shaposhnikov## LC_VERSION_MIN_TVOS, LC_VERSION_MIN_WATCHOS). 5074af2daSAlexander Shaposhnikov 6*55c81d42SFangrui Song# RUN: yaml2obj %p/Inputs/min_iphoneos_version_lc.yaml -o %t.iphoneos 7074af2daSAlexander Shaposhnikov# RUN: llvm-objcopy %t.iphoneos %t.iphoneos.copy 8074af2daSAlexander Shaposhnikov# RUN: cmp %t.iphoneos %t.iphoneos.copy 9074af2daSAlexander Shaposhnikov 10*55c81d42SFangrui Song# RUN: yaml2obj %p/Inputs/min_macos_version_lc.yaml -o %t.macos 11074af2daSAlexander Shaposhnikov# RUN: llvm-objcopy %t.macos %t.macos.copy 12074af2daSAlexander Shaposhnikov# RUN: cmp %t.macos %t.macos.copy 13074af2daSAlexander Shaposhnikov 14*55c81d42SFangrui Song# RUN: yaml2obj %p/Inputs/min_tvos_version_lc.yaml -o %t.tvos 15074af2daSAlexander Shaposhnikov# RUN: llvm-objcopy %t.tvos %t.tvos.copy 16074af2daSAlexander Shaposhnikov# RUN: cmp %t.tvos %t.tvos.copy 17074af2daSAlexander Shaposhnikov 18*55c81d42SFangrui Song# RUN: yaml2obj %p/Inputs/min_watchos_version_lc.yaml -o %t.watchos 19074af2daSAlexander Shaposhnikov# RUN: llvm-objcopy %t.watchos %t.watchos.copy 20074af2daSAlexander Shaposhnikov# RUN: cmp %t.watchos %t.watchos.copy 21