Debian Codegraph @

clang/test/Driver/response-file-errs.c

raw
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
6
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
11
12 // If file in `@file` is a directory, it is an error.
13 //
14 // RUN: not %clang @%S/Inputs -### 2>&1 | FileCheck -DMSG=%errc_EISDIR --check-prefix=DIRECTORY %s
15 // DIRECTORY: cannot not open file '{{.*}}Inputs': [[MSG]]