output-file-cleanup.c revision 1b91ab467cffd44c222f1c5bed76910cce059a9e
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
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
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
19// XFAIL: darwin
20
21#ifdef CRASH
22#pragma clang __debug crash
23#elif defined(MISSING)
24#include "nonexistent.h"
25#else
26invalid C code
27#endif
28