blob: 0a0c96001b59fc78f546ada08d638e31ed378b85 [file] [log] [blame]
Peter Collingbourne5d4d9802011-11-21 00:01:05 +00001// 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 Collingbourne1b91ab42011-11-21 00:01:14 +00007// 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 Collingbourne5d4d9802011-11-21 00:01:05 +000012// 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 Collingbourne5d4d9802011-11-21 00:01:05 +000019#ifdef CRASH
20#pragma clang __debug crash
Peter Collingbourne1b91ab42011-11-21 00:01:14 +000021#elif defined(MISSING)
22#include "nonexistent.h"
Peter Collingbourne5d4d9802011-11-21 00:01:05 +000023#else
24invalid C code
25#endif