[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / arclite-link-external-toolchain.c
blobd518468bb77d33cede4aff75c14838dcb6cf379a
1 // RUN: rm -rf %t.tmpdir
2 // RUN: mkdir -p %t.tmpdir/Xcode.app/Contents/Developers/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
3 // RUN: not %clang -### -target x86_64-apple-macos10.10 -fobjc-link-runtime -lfoo \
4 // RUN: -isysroot %t.tmpdir/Xcode.app/Contents/Developers/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk \
5 // RUN: %s 2>&1 | FileCheck %s
7 // CHECK: error: SDK does not contain 'libarclite' at the path '
8 // CHECK: .tmpdir/Xcode.app/{{.*}}libarclite_macosx.a';
9 // CHECK: try increasing the minimum deployment target
10 // CHECK: -lfoo
11 // CHECK: .tmpdir/Xcode.app/{{.*}}libarclite_macosx.a