summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/output-file-cleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/output-file-cleanup.c')
-rw-r--r--clang/test/Driver/output-file-cleanup.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/Driver/output-file-cleanup.c b/clang/test/Driver/output-file-cleanup.c
new file mode 100644
index 00000000000..b4745e22473
--- /dev/null
+++ b/clang/test/Driver/output-file-cleanup.c
@@ -0,0 +1,20 @@
+// RUN: touch %t.o
+// RUN: not %clang -DCRASH -o %t.o -MMD -MF %t.d %s
+// RUN: test ! -f %t.o
+// RUN: test ! -f %t.d
+
+// RUN: touch %t.o
+// RUN: not %clang -o %t.o -MMD -MF %t.d %s
+// RUN: test ! -f %t.o
+// RUN: test -f %t.d
+
+// REQUIRES: shell
+// REQUIRES: crash-recovery
+
+// XFAIL: darwin
+
+#ifdef CRASH
+#pragma clang __debug crash
+#else
+invalid C code
+#endif
OpenPOWER on IntegriCloud