2016-02-25 05:49:26 +08:00
|
|
|
// RUN: rm -f "%t.d" "%t1.s" "%t2.s" "%t3.s" "%t4.s" "%t5.s"
|
|
|
|
//
|
2013-01-29 04:51:27 +08:00
|
|
|
// RUN: touch %t.s
|
|
|
|
// RUN: not %clang -S -DCRASH -o %t.s -MMD -MF %t.d %s
|
|
|
|
// RUN: test ! -f %t.s
|
2011-11-21 08:01:05 +08:00
|
|
|
// RUN: test ! -f %t.d
|
|
|
|
|
2013-01-29 04:51:27 +08:00
|
|
|
// RUN: touch %t.s
|
|
|
|
// RUN: not %clang -S -DMISSING -o %t.s -MMD -MF %t.d %s
|
|
|
|
// RUN: test ! -f %t.s
|
2011-11-21 08:01:14 +08:00
|
|
|
// RUN: test ! -f %t.d
|
|
|
|
|
2013-01-29 04:51:27 +08:00
|
|
|
// RUN: touch %t.s
|
|
|
|
// RUN: not %clang -S -o %t.s -MMD -MF %t.d %s
|
|
|
|
// RUN: test ! -f %t.s
|
2011-11-21 08:01:05 +08:00
|
|
|
// RUN: test -f %t.d
|
|
|
|
|
|
|
|
// REQUIRES: crash-recovery
|
|
|
|
|
|
|
|
#ifdef CRASH
|
|
|
|
#pragma clang __debug crash
|
2011-11-21 08:01:14 +08:00
|
|
|
#elif defined(MISSING)
|
|
|
|
#include "nonexistent.h"
|
2011-11-21 08:01:05 +08:00
|
|
|
#else
|
|
|
|
invalid C code
|
|
|
|
#endif
|
2013-01-25 03:14:47 +08:00
|
|
|
|
2017-08-16 03:47:06 +08:00
|
|
|
// RUN: rm -rf %t-dir
|
|
|
|
// RUN: mkdir -p %t-dir
|
|
|
|
// RUN: cd %t-dir
|
|
|
|
|
|
|
|
// RUN: touch %t-dir/1.c
|
|
|
|
// RUN: echo "invalid C code" > %t-dir/2.c
|
|
|
|
// RUN: not %clang -S %t-dir/1.c %t-dir/2.c
|
|
|
|
// RUN: test -f %t-dir/1.s
|
|
|
|
// RUN: test ! -f %t-dir/2.s
|
|
|
|
|
|
|
|
// RUN: touch %t-dir/1.c
|
|
|
|
// RUN: touch %t-dir/2.c
|
|
|
|
// RUN: chmod -r %t-dir/2.c
|
|
|
|
// RUN: not %clang -S %t-dir/1.c %t-dir/2.c
|
|
|
|
// RUN: test -f %t-dir/1.s
|
|
|
|
// RUN: test ! -f %t-dir/2.s
|
2018-09-15 05:36:35 +08:00
|
|
|
// RUN: rm -f %t-dir/2.c
|