[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / darwin-target-variant-sdk-version.c
blob32470e525d223048321afa94a68eae2778ecb3a2
1 // RUN: %clang -target x86_64-apple-macosx10.15 -darwin-target-variant x86_64-apple-ios13.1-macabi -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -c -### %s 2>&1 \
2 // RUN: | FileCheck %s
3 // RUN: env SDKROOT=%S/Inputs/MacOSX10.15.versioned.sdk %clang -target x86_64-apple-macosx10.15 -darwin-target-variant x86_64-apple-ios13.1-macabi -c -### %s 2>&1 \
4 // RUN: | FileCheck %s
5 // RUN: %clang -target x86_64-apple-ios13.1-macabi -darwin-target-variant x86_64-apple-macosx10.15 -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -c -### %s 2>&1 \
6 // RUN: | FileCheck --check-prefix=CHECK-SWAPPED %s
7 // RUN: %clang -target x86_64-apple-ios13.1-macabi -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -c -### %s 2>&1 \
8 // RUN: | FileCheck --check-prefix=CHECK-MACCATALYST %s
10 // CHECK: "-target-sdk-version=10.15" "-darwin-target-variant-sdk-version=13.1"
11 // CHECK-SWAPPED: "-target-sdk-version=13.1" "-darwin-target-variant-sdk-version=10.15"
12 // CHECK-MACCATALYST: "-target-sdk-version=13.1"