Peter Collingbourne | 5d4d980 | 2011-11-21 00:01:05 +0000 | [diff] [blame] | 1 | // RUN: touch %t.o |
| 2 | // RUN: not %clang -DCRASH -o %t.o -MMD -MF %t.d %s |
| 3 | // RUN: test ! -f %t.o |
| 4 | // RUN: test ! -f %t.d |
| 5 | |
| 6 | // RUN: touch %t.o |
Peter Collingbourne | 1b91ab4 | 2011-11-21 00:01:14 +0000 | [diff] [blame] | 7 | // RUN: not %clang -DMISSING -o %t.o -MMD -MF %t.d %s |
| 8 | // RUN: test ! -f %t.o |
| 9 | // RUN: test ! -f %t.d |
| 10 | |
| 11 | // RUN: touch %t.o |
Peter Collingbourne | 5d4d980 | 2011-11-21 00:01:05 +0000 | [diff] [blame] | 12 | // RUN: not %clang -o %t.o -MMD -MF %t.d %s |
| 13 | // RUN: test ! -f %t.o |
| 14 | // RUN: test -f %t.d |
| 15 | |
| 16 | // REQUIRES: shell |
| 17 | // REQUIRES: crash-recovery |
| 18 | |
Peter Collingbourne | 5d4d980 | 2011-11-21 00:01:05 +0000 | [diff] [blame] | 19 | #ifdef CRASH |
| 20 | #pragma clang __debug crash |
Peter Collingbourne | 1b91ab4 | 2011-11-21 00:01:14 +0000 | [diff] [blame] | 21 | #elif defined(MISSING) |
| 22 | #include "nonexistent.h" |
Peter Collingbourne | 5d4d980 | 2011-11-21 00:01:05 +0000 | [diff] [blame] | 23 | #else |
| 24 | invalid C code |
| 25 | #endif |