[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / response-file-errs.c
blob5331c8e308f4871b72baa50968503076e7d04f1e
1 // If response file does not exist, '@file; directive remains unexpanded in
2 // command line.
3 //
4 // RUN: not %clang @%S/Inputs/inexistent.rsp -### 2>&1 | FileCheck --check-prefix=INEXISTENT %s
5 // INEXISTENT: @{{.*}}Inputs/inexistent.rsp
7 // As the above case but '@file' is in response file.
8 //
9 // RUN: not %clang @%S/Inputs/inc-inexistent.rsp -### 2>&1 | FileCheck --check-prefix=INEXISTENT2 %s
10 // INEXISTENT2: @{{.*}}inexistent.txt
12 // If file in `@file` is a directory, it is an error.
14 // RUN: not %clang @%S/Inputs -### 2>&1 | FileCheck -DMSG=%errc_EISDIR --check-prefix=DIRECTORY %s
15 // DIRECTORY: cannot not open file '{{.*}}Inputs': [[MSG]]