2012-07-17 13:09:20 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir %t
|
2012-11-01 02:31:33 +08:00
|
|
|
// RUN: 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/ \
|
2012-07-26 02:55:43 +08:00
|
|
|
// RUN: -internal-isystem /tmp/ -internal-externc-isystem /tmp/ \
|
2012-07-26 02:38:57 +08:00
|
|
|
// RUN: -DFOO=BAR 2>&1 | FileCheck %s
|
2012-07-17 13:09:20 +08:00
|
|
|
// RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s
|
|
|
|
// RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s
|
2012-06-30 06:03:56 +08:00
|
|
|
// REQUIRES: crash-recovery
|
|
|
|
|
2012-12-26 05:56:27 +08:00
|
|
|
// RUN: env FORCE_CLANG_DIAGNOSTICS_CRASH=1 %clang -fsyntax-only -x c /dev/null 2>&1 | FileCheck %s
|
|
|
|
|
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:
|
2012-07-03 06:07:20 +08:00
|
|
|
// CHECK-NEXT: note: diagnostic msg: {{.*}}.c
|
|
|
|
FOO
|
|
|
|
// CHECKSRC: FOO
|
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
|