summaryrefslogtreecommitdiffstats
path: root/clangd/test/spaces-in-delimited-input.test
diff options
context:
space:
mode:
Diffstat (limited to 'clangd/test/spaces-in-delimited-input.test')
-rw-r--r--clangd/test/spaces-in-delimited-input.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/clangd/test/spaces-in-delimited-input.test b/clangd/test/spaces-in-delimited-input.test
new file mode 100644
index 00000000..9636425e
--- /dev/null
+++ b/clangd/test/spaces-in-delimited-input.test
@@ -0,0 +1,13 @@
+# RUN: clangd -input-style=delimited -run-synchronously < %s 2>&1 | FileCheck %s
+# RUN: clangd -lit-test -run-synchronously < %s 2>&1 | FileCheck %s
+#
+{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
+
+---
+
+{"jsonrpc":"2.0","id":3,"method":"shutdown"}
+
+---
+
+{"jsonrpc":"2.0","method":"exit"}
+# CHECK-NOT: JSON parse error