[ELF] Reorder SectionBase/InputSectionBase members
[llvm-project.git] / clang / test / Driver / darwin-ld-platform-version-target-version.c
blobcc88e015f82c5b379119f9180e466017fc5cc71b
1 // RUN: touch %t.o
3 // RUN: %clang -target x86_64-apple-ios13.1-macabi -darwin-target-variant x86_64-apple-macos10.15 -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -mlinker-version=520 -### %t.o 2>&1 \
4 // RUN: | FileCheck %s
5 // RUN: %clang -target x86_64-apple-macos10.14.3 -darwin-target-variant x86_64-apple-ios13.1-macabi -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -mlinker-version=520 -### %t.o 2>&1 \
6 // RUN: | FileCheck --check-prefix=CHECK-INV %s
8 // RUN: %clang -target arm64-apple-ios13.1-macabi -darwin-target-variant arm64-apple-macos10.15 -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -mlinker-version=520 -### %t.o 2>&1 \
9 // RUN: | FileCheck --check-prefix=ARM64_NEW %s
10 // RUN: %clang -target arm64-apple-macos10.15 -darwin-target-variant arm64-apple-ios13.1-macabi -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -mlinker-version=520 -### %t.o 2>&1 \
11 // RUN: | FileCheck --check-prefix=ARM64_NEW-INV %s
12 // RUN: %clang -target arm64-apple-ios13.1-macabi -darwin-target-variant arm64-apple-macos10.15 -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -fuse-ld= -mlinker-version=400 -### %t.o 2>&1 \
13 // RUN: | FileCheck --check-prefix=ARM64_OLD %s
14 // RUN: %clang -target arm64-apple-macos10.15 -darwin-target-variant arm64-apple-ios13.1-macabi -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -fuse-ld= -mlinker-version=400 -### %t.o 2>&1 \
15 // RUN: | FileCheck --check-prefix=ARM64_OLD-INV %s
17 // CHECK: "-platform_version" "mac catalyst" "13.1.0" "13.1"
18 // CHECK-SAME: "-platform_version" "macos" "10.15" "10.15"
20 // CHECK-INV: "-platform_version" "macos" "10.14.3" "10.15"
21 // CHECK-INV-SAME: "-platform_version" "mac catalyst" "13.1" "13.1"
23 // ARM64_NEW: "-platform_version" "mac catalyst" "14.0.0" "13.1"
24 // ARM64_NEW-SAME: "-platform_version" "macos" "11.0.0" "10.15"
26 // ARM64_NEW-INV: "-platform_version" "macos" "11.0.0" "10.15"
27 // ARM64_NEW-INV-SAME: "-platform_version" "mac catalyst" "14.0.0" "13.1"
29 // ARM64_OLD: "-maccatalyst_version_min" "14.0.0" "-macosx_version_min" "11.0.0"
30 // ARM64_OLD-INV: "-macosx_version_min" "11.0.0" "-maccatalyst_version_min" "14.0.0"