| // RUN: rm -f "%t.d" "%t1.s" "%t2.s" "%t3.s" "%t4.s" "%t5.s" |
| // RUN: not %clang -S -DCRASH -o %t.s -MMD -MF %t.d %s |
| // RUN: not %clang -S -DMISSING -o %t.s -MMD -MF %t.d %s |
| // RUN: not %clang -S -o %t.s -MMD -MF %t.d %s |
| // REQUIRES: crash-recovery |
| #pragma clang __debug crash |
| // RUN: echo "invalid C code" > %t-dir/2.c |
| // RUN: not %clang -S %t-dir/1.c %t-dir/2.c |
| // RUN: test -f %t-dir/1.s |
| // RUN: test ! -f %t-dir/2.s |
| // RUN: chmod -r %t-dir/2.c |
| // RUN: not %clang -S %t-dir/1.c %t-dir/2.c |
| // RUN: test -f %t-dir/1.s |
| // RUN: test ! -f %t-dir/2.s |