2012-07-17 13:09:20 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir %t
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not env TMPDIR=%t TEMP=%t TMP=%t RC_DEBUG_OPTIONS=1 %clang -fsyntax-only %s \
|
2012-07-26 02:38:57 +08:00
|
|
|
// RUN: -F/tmp/ -I /tmp/ -idirafter /tmp/ -iquote /tmp/ -isystem /tmp/ \
|
|
|
|
// RUN: -iprefix /the/prefix -iwithprefix /tmp -iwithprefixbefore /tmp/ \
|
2013-09-25 23:47:05 +08:00
|
|
|
// RUN: -Xclang -internal-isystem -Xclang /tmp/ \
|
|
|
|
// RUN: -Xclang -internal-externc-isystem -Xclang /tmp/ \
|
2012-07-26 02:38:57 +08:00
|
|
|
// RUN: -DFOO=BAR 2>&1 | FileCheck %s
|
2014-06-21 06:16:00 +08:00
|
|
|
// RUN: cat %t/crash-report-*.i | FileCheck --check-prefix=CHECKSRC %s
|
2012-07-17 13:09:20 +08:00
|
|
|
// RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s
|
2012-06-30 06:03:56 +08:00
|
|
|
// REQUIRES: crash-recovery
|
|
|
|
|
2014-06-21 06:16:00 +08:00
|
|
|
// because of the glob (*.i, *.sh)
|
2013-07-05 00:23:44 +08:00
|
|
|
// REQUIRES: shell
|
|
|
|
|
2014-04-29 06:24:44 +08:00
|
|
|
// RUN: not env FORCE_CLANG_DIAGNOSTICS_CRASH=1 %clang -fsyntax-only -x c /dev/null -lstdc++ 2>&1 | FileCheck %s
|
2012-12-26 05:56:27 +08:00
|
|
|
|
2013-08-06 11:57:41 +08:00
|
|
|
// FIXME: Investigating. "fatal error: file 'nul' modified since it was first processed"
|
|
|
|
// XFAIL: mingw32
|
|
|
|
|
2012-06-30 06:03:56 +08:00
|
|
|
#pragma clang __debug parser_crash
|
|
|
|
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
|
2014-06-21 06:16:00 +08:00
|
|
|
// CHECK-NEXT: note: diagnostic msg: {{.*}}.i
|
2012-07-03 06:07:20 +08:00
|
|
|
FOO
|
|
|
|
// CHECKSRC: FOO
|
2013-09-13 02:23:34 +08:00
|
|
|
// CHECKSH: -cc1
|
2012-07-26 01:52:16 +08:00
|
|
|
// CHECKSH: -D "FOO=BAR"
|
|
|
|
// CHECKSH-NOT: -F/tmp/
|
|
|
|
// CHECKSH-NOT: -I /tmp/
|
2012-07-26 02:38:57 +08:00
|
|
|
// CHECKSH-NOT: -idirafter /tmp/
|
2012-07-26 01:52:16 +08:00
|
|
|
// CHECKSH-NOT: -iquote /tmp/
|
2012-07-26 02:38:57 +08:00
|
|
|
// CHECKSH-NOT: -isystem /tmp/
|
|
|
|
// CHECKSH-NOT: -iprefix /the/prefix
|
|
|
|
// CHECKSH-NOT: -iwithprefix /tmp/
|
|
|
|
// CHECKSH-NOT: -iwithprefixbefore /tmp/
|
2012-07-26 02:55:43 +08:00
|
|
|
// CHECKSH-NOT: -internal-isystem /tmp/
|
|
|
|
// CHECKSH-NOT: -internal-externc-isystem /tmp/
|
2012-11-01 02:31:33 +08:00
|
|
|
// CHECKSH-NOT: -dwarf-debug-flags
|