diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-25 21:56:27 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-25 21:56:27 +0000 |
commit | a57b3b4fea1c962678972af8fc74e121ff8b296d (patch) | |
tree | 73ed6f071b2807694ed4f4b60c469ddefb515b98 /test/Driver/crash-report.c | |
parent | 65d78312ce026092cb6e7b1d4d06f05e18d02aa0 (diff) |
Produce an actual error before attempting to attach notes to it when bailing out
due to FORCE_CLANG_DIAGNOSTICS_CRASH=1. Also add a test for that env var.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/crash-report.c')
-rw-r--r-- | test/Driver/crash-report.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Driver/crash-report.c b/test/Driver/crash-report.c index bfcd5732b3..975e9a8a71 100644 --- a/test/Driver/crash-report.c +++ b/test/Driver/crash-report.c @@ -9,6 +9,8 @@ // RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s // REQUIRES: crash-recovery +// RUN: env FORCE_CLANG_DIAGNOSTICS_CRASH=1 %clang -fsyntax-only -x c /dev/null 2>&1 | FileCheck %s + #pragma clang __debug parser_crash // CHECK: Preprocessed source(s) and associated run script(s) are located at: // CHECK-NEXT: note: diagnostic msg: {{.*}}.c |