diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Driver/output-file-cleanup.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/clang/test/Driver/output-file-cleanup.c b/clang/test/Driver/output-file-cleanup.c index 0a0c96001b5..19c0badfdbe 100644 --- a/clang/test/Driver/output-file-cleanup.c +++ b/clang/test/Driver/output-file-cleanup.c @@ -1,15 +1,15 @@ // RUN: touch %t.o -// RUN: not %clang -DCRASH -o %t.o -MMD -MF %t.d %s +// RUN: not %clang -c -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 -DMISSING -o %t.o -MMD -MF %t.d %s +// RUN: not %clang -c -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: not %clang -c -o %t.o -MMD -MF %t.d %s // RUN: test ! -f %t.o // RUN: test -f %t.d @@ -23,3 +23,16 @@ #else invalid C code #endif + +// RUN: touch %t1.c +// RUN: echo "invalid C code" > %t2.c +// RUN: cd %T && not %clang -c %t1.c %t2.c +// RUN: test -f %t1.o +// RUN: test ! -f %t2.o + +// RUN: touch %t1.c +// RUN: touch %t2.c +// RUN: chmod -r %t2.c +// RUN: cd %T && not %clang -c %t1.c %t2.c +// RUN: test -f %t1.o +// RUN: test ! -f %t2.o |

