[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / rtlib-darwin.c
blobcee8a80a5d2665a67f0013e80d591bacadfe1d15
1 // RUN: %clang -target x86_64-apple-darwin -resource-dir=%S/Inputs/resource_dir --rtlib=compiler-rt -### %s 2>&1 | FileCheck %s -check-prefix DARWIN-COMPILER-RT
2 // RUN: %clang -target x86_64-apple-darwin -resource-dir=%S/Inputs/resource_dir --rtlib=platform -### %s 2>&1 | FileCheck %s -check-prefix DARWIN-COMPILER-RT
3 // RUN: not %clang %s -target x86_64-apple-darwin --rtlib=libgcc 2>&1 | FileCheck %s -check-prefix CHECK-ERROR
5 // DARWIN-COMPILER-RT: "{{.*}}clang_rt.osx{{.*}}"
6 // CHECK-ERROR: unsupported runtime library 'libgcc' for platform 'darwin'