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.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Driver/output-file-cleanup.c b/clang/test/Driver/output-file-cleanup.c
index a8a16d3c39f..0aee5f8fa96 100644
--- a/clang/test/Driver/output-file-cleanup.c
+++ b/clang/test/Driver/output-file-cleanup.c
@@ -36,3 +36,15 @@ invalid C code
// RUN: cd %T && not %clang -S %t1.c %t2.c
// RUN: test -f %t1.s
// RUN: test ! -f %t2.s
+
+// RUN: touch %t1.c
+// RUN: echo "invalid C code" > %t2.c
+// RUN: touch %t3.c
+// RUN: echo "invalid C code" > %t4.c
+// RUN: touch %t5.c
+// RUN: cd %T && not %clang -S %t1.c %t2.c %t3.c %t4.c %t5.c
+// RUN: test -f %t1.s
+// RUN: test ! -f %t2.s
+// RUN: test -f %t3.s
+// RUN: test ! -f %t4.s
+// RUN: test -f %t5.s
OpenPOWER on IntegriCloud