[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Frontend / output-paths.c
blob22d46f67b08b87960671ab1d486eb4ee08b1dad8
1 // RUN: not %clang_cc1 -emit-llvm -o %t.doesnotexist/somename %s 2> %t
2 // RUN: FileCheck -check-prefix=OUTPUTFAIL -DMSG=%errc_ENOENT -input-file=%t %s
4 // OUTPUTFAIL: error: unable to open output file '{{.*}}doesnotexist{{.}}somename': '[[MSG]]'
6 // Check that -working-directory is respected when diagnosing output failures.
7 //
8 // RUN: rm -rf %t.d && mkdir -p %t.d/%basename_t-inner.d
9 // RUN: %clang_cc1 -working-directory %t.d -E -o %basename_t-inner.d/somename %s -verify
10 // expected-no-diagnostics
12 // RUN: %clang_cc1 -working-directory %t.d -E %s -o - | FileCheck %s
13 // CHECK: # 1