summaryrefslogtreecommitdiff
path: root/test/Driver/crash-diagnostics-dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/crash-diagnostics-dir.c')
-rw-r--r--test/Driver/crash-diagnostics-dir.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/crash-diagnostics-dir.c b/test/Driver/crash-diagnostics-dir.c
new file mode 100644
index 0000000000000..c8faf497b5a19
--- /dev/null
+++ b/test/Driver/crash-diagnostics-dir.c
@@ -0,0 +1,6 @@
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+// RUN: not %clang -fcrash-diagnostics-dir=%t -c %s -o - 2>&1 | FileCheck %s
+#pragma clang __debug parser_crash
+// CHECK: Preprocessed source(s) and associated run script(s) are located at:
+// CHECK: diagnostic msg: {{.*}}{{/|\\}}crash-diagnostics-dir.c.tmp{{(/|\\).*}}.c