[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / clang-cc1as-target-variant.s
blobf4b5fb8144d47aff5dca9fd1988b7211cc9b7168
1 // RUN: touch %t.S
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.S 2>&1 \
4 // RUN: | FileCheck %s
6 // RUN: %clang -target x86_64-apple-ios-macabi -mmacos-version-min=10.15 -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -mlinker-version=520 -### %t.S 2>&1 \
7 // RUN: | FileCheck --check-prefix=CHECK-SDK-INFO %s
9 // RUN: %clang -target x86_64-apple-ios-macabi -mmacos-version-min=10.15 -darwin-target-variant x86_64-apple-macos -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -mlinker-version=520 -### %t.S 2>&1 \
10 // RUN: | FileCheck --check-prefix=CHECK-VARIANT-SDK-INFO %s
12 // RUN: %clang -target x86_64-apple-macos -mmacos-version-min=10.15 -darwin-target-variant x86_64-apple-ios-macabi -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -mlinker-version=520 -### %t.S 2>&1 \
13 // RUN: | FileCheck --check-prefix=CHECK-VARIANT-SDK-INFO-INV %s
15 // CHECK: "-cc1as"
16 // CHECK-SAME: "-triple" "x86_64-apple-ios13.1.0-macabi"
17 // CHECK-SAME: "-darwin-target-variant-triple" "x86_64-apple-macos10.15"
19 // CHECK-SDK-INFO: "-cc1as"
20 // CHECK-SDK-INFO-SAME: "-triple" "x86_64-apple-ios13.1.0-macabi"
21 // CHECK-SDK-INFO-SAME: "-target-sdk-version=13.1"
23 // CHECK-VARIANT-SDK-INFO: "-cc1as"
24 // CHECK-VARIANT-SDK-INFO-SAME: "-triple" "x86_64-apple-ios13.1.0-macabi"
25 // CHECK-VARIANT-SDK-INFO-SAME: "-darwin-target-variant-triple" "x86_64-apple-macos"
26 // CHECK-VARIANT-SDK-INFO-SAME: "-target-sdk-version=13.1"
27 // CHECK-VARIANT-SDK-INFO-SAME: "-darwin-target-variant-sdk-version=10.15"
29 // CHECK-VARIANT-SDK-INFO-INV: "-cc1as"
30 // CHECK-VARIANT-SDK-INFO-INV-SAME: "-triple" "x86_64-apple-macosx10.15.0"
31 // CHECK-VARIANT-SDK-INFO-INV-SAME: "-darwin-target-variant-triple" "x86_64-apple-ios-macabi"
32 // CHECK-VARIANT-SDK-INFO-INV-SAME: "-target-sdk-version=10.15"
33 // CHECK-VARIANT-SDK-INFO-INV-SAME: "-darwin-target-variant-sdk-version=13.1"