llvm/clang/test/Driver/darwin-ld-platform-version-watchos.c

// RUN: touch %t.o

// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld= \
// RUN:   -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=400 \
// RUN:   -### %t.o 2>&1 \
// RUN:   | FileCheck --check-prefix=LINKER-OLD %s
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld=lld \
// RUN:   -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=0 \
// RUN:   -### %t.o -B%S/Inputs/lld 2>&1 \
// RUN:   | FileCheck --check-prefix=LINKER-NEW %s
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld= \
// RUN:   -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=520 \
// RUN:   -### %t.o 2>&1 \
// RUN:   | FileCheck --check-prefix=LINKER-NEW %s
// RUN: %clang -target x86_64-apple-watchos6-simulator -fuse-ld= \
// RUN:   -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=520 \
// RUN:   -### %t.o 2>&1 \
// RUN:   | FileCheck --check-prefix=SIMUL %s

// LINKER-OLD: "-watchos_version_min" "5.2.0"
// LINKER-NEW: "-platform_version" "watchos" "5.2.0" "6.0.0"
// SIMUL: "-platform_version" "watchos-simulator" "6.0.0" "6.0.0"