aboutsummaryrefslogtreecommitdiff
path: root/test/Misc/serialized-diags-frontend.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Misc/serialized-diags-frontend.c')
-rw-r--r--test/Misc/serialized-diags-frontend.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Misc/serialized-diags-frontend.c b/test/Misc/serialized-diags-frontend.c
new file mode 100644
index 000000000000..453ed1470aaa
--- /dev/null
+++ b/test/Misc/serialized-diags-frontend.c
@@ -0,0 +1,8 @@
+// RUN: rm -f %t
+// RUN: %clang -fsyntax-only %s -Wblahblah --serialize-diagnostics %t > /dev/null 2>&1 || true
+// RUN: c-index-test -read-diagnostics %t 2>&1 | FileCheck %s
+
+// This test case tests that we can handle frontend diagnostics.
+
+// CHECK: warning: unknown warning option '-Wblahblah'
+// CHECK: Number of diagnostics: 1