1// RUN: llvm-mc -triple i386-apple-ios %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=IOS 2// RUN: llvm-mc -triple i386-apple-watchos %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=WATCHOS 3// RUN: llvm-mc -triple i386-apple-tvos %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=TVOS 4// RUN: llvm-mc -triple i386-apple-macosx %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=MACOSX 5 6.ios_version_min 1,2,3 7// WATCHOS: version-min-diagnostics2.s:[[@LINE-1]]:1: warning: .ios_version_min used while targeting watchos 8// TVOS: version-min-diagnostics2.s:[[@LINE-2]]:1: warning: .ios_version_min used while targeting tvos 9// MACOSX: version-min-diagnostics2.s:[[@LINE-3]]:1: warning: .ios_version_min used while targeting macos 10// IOS-NOT: warning: .ios_version_min used while targeting 11 12.macosx_version_min 4,5,6 13// WATCHOS: version-min-diagnostics2.s:[[@LINE-1]]:1: warning: .macosx_version_min used while targeting watchos 14// TVOS: version-min-diagnostics2.s:[[@LINE-2]]:1: warning: .macosx_version_min used while targeting tvos 15// IOS: version-min-diagnostics2.s:[[@LINE-3]]:1: warning: .macosx_version_min used while targeting ios 16// MACOSX-NOT: warning: .macosx_version_min used while targeting 17// CHECK: version-min-diagnostics2.s:[[@LINE-5]]:1: warning: overriding previous version directive 18// CHECK: version-min-diagnostics2.s:[[@LINE-12]]:1: note: previous definition is here 19 20.tvos_version_min 7,8,9 21// WATCHOS: version-min-diagnostics2.s:[[@LINE-1]]:1: warning: .tvos_version_min used while targeting watchos 22// MACOSX: version-min-diagnostics2.s:[[@LINE-2]]:1: warning: .tvos_version_min used while targeting macos 23// IOS: version-min-diagnostics2.s:[[@LINE-3]]:1: warning: .tvos_version_min used while targeting ios 24// TVOS-NOT: warning: .tvos_version_min used while targeting 25// CHECK: version-min-diagnostics2.s:[[@LINE-5]]:1: warning: overriding previous version directive 26// CHECK: version-min-diagnostics2.s:[[@LINE-14]]:1: note: previous definition is here 27 28.watchos_version_min 10,11,12 29// MACOSX: version-min-diagnostics2.s:[[@LINE-1]]:1: warning: .watchos_version_min used while targeting macos 30// IOS: version-min-diagnostics2.s:[[@LINE-2]]:1: warning: .watchos_version_min used while targeting ios 31// TVOS: version-min-diagnostics2.s:[[@LINE-3]]:1: warning: .watchos_version_min used while targeting tvos 32// WATCHOS-NOT: warning: .watchos_version_min used while targeting watchos 33// CHECK: version-min-diagnostics2.s:[[@LINE-5]]:1: warning: overriding previous version directive 34// CHECK: version-min-diagnostics2.s:[[@LINE-14]]:1: note: previous definition is here 35