16 lines · c
1// If response file does not exist, '@file; directive remains unexpanded in2// command line.3//4// RUN: not %clang @%S/Inputs/inexistent.rsp -### 2>&1 | FileCheck --check-prefix=INEXISTENT %s5// INEXISTENT: @{{.*}}Inputs/inexistent.rsp6 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 %s10// INEXISTENT2: @{{.*}}inexistent.txt11 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 %s15// DIRECTORY: cannot not open file '{{.*}}Inputs': [[MSG]]16