diff options
Diffstat (limited to 'test/Driver/rewrite-map-in-diagnostics.c')
-rw-r--r-- | test/Driver/rewrite-map-in-diagnostics.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Driver/rewrite-map-in-diagnostics.c b/test/Driver/rewrite-map-in-diagnostics.c new file mode 100644 index 0000000..984e0d6 --- /dev/null +++ b/test/Driver/rewrite-map-in-diagnostics.c @@ -0,0 +1,12 @@ +// RUN: rm -rf "%t" +// RUN: mkdir -p "%t" +// RUN: not env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTION=1 \ +// RUN: %clang -fsyntax-only -frewrite-map-file %p/Inputs/rewrite.map %s 2>&1 \ +// RUN: | FileCheck %s + +#pragma clang __debug parser_crash + +// CHECK: note: diagnostic msg: {{.*}}rewrite.map + +// FIXME: This doesn't fail on "env clang". Investigating. +// REQUIRES: shell |