diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Driver/output-file-cleanup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Driver/output-file-cleanup.c b/clang/test/Driver/output-file-cleanup.c index b4745e22473..7bc17af2030 100644 --- a/clang/test/Driver/output-file-cleanup.c +++ b/clang/test/Driver/output-file-cleanup.c @@ -4,6 +4,11 @@ // RUN: test ! -f %t.d // RUN: touch %t.o +// RUN: not %clang -DMISSING -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 @@ -15,6 +20,8 @@ #ifdef CRASH #pragma clang __debug crash +#elif defined(MISSING) +#include "nonexistent.h" #else invalid C code #endif |