1 // RUN: touch %t.s 2 // RUN: not %clang -S -DCRASH -o %t.s -MMD -MF %t.d %s 3 // RUN: test ! -f %t.s 4 // RUN: test ! -f %t.d 5 6 // RUN: touch %t.s 7 // RUN: not %clang -S -DMISSING -o %t.s -MMD -MF %t.d %s 8 // RUN: test ! -f %t.s 9 // RUN: test ! -f %t.d 10 11 // RUN: touch %t.s 12 // RUN: not %clang -S -o %t.s -MMD -MF %t.d %s 13 // RUN: test ! -f %t.s 14 // RUN: test -f %t.d 15 16 // REQUIRES: crash-recovery 17 18 #ifdef CRASH 19 #pragma clang __debug crash 20 #elif defined(MISSING) 21 #include "nonexistent.h" 22 #else 23 invalid C code 24 #endif 25 26 // RUN: touch %t1.c 27 // RUN: echo "invalid C code" > %t2.c 28 // RUN: cd %T && not %clang -S %t1.c %t2.c 29 // RUN: test -f %t1.s 30 // RUN: test ! -f %t2.s 31 32 // RUN: touch %t1.c 33 // RUN: touch %t2.c 34 // RUN: chmod -r %t2.c 35 // RUN: cd %T && not %clang -S %t1.c %t2.c 36 // RUN: test -f %t1.s 37 // RUN: test ! -f %t2.s 38 39 // RUN: touch %t1.c 40 // RUN: echo "invalid C code" > %t2.c 41 // RUN: touch %t3.c 42 // RUN: echo "invalid C code" > %t4.c 43 // RUN: touch %t5.c 44 // RUN: cd %T && not %clang -S %t1.c %t2.c %t3.c %t4.c %t5.c 45 // RUN: test -f %t1.s 46 // RUN: test ! -f %t2.s 47 // RUN: test -f %t3.s 48 // RUN: test ! -f %t4.s 49 // RUN: test -f %t5.s 50