Successfully tested on x86_64-pc-linux-gnu.
Pushed to trunk as r15-7658-gc5f541e40aca2d

gcc/testsuite/ChangeLog:
        * sarif-replay.dg/malformed-json/empty.sarif: New test.

Signed-off-by: David Malcolm <dmalc...@redhat.com>
---
 gcc/testsuite/sarif-replay.dg/malformed-json/empty.sarif | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 gcc/testsuite/sarif-replay.dg/malformed-json/empty.sarif

diff --git a/gcc/testsuite/sarif-replay.dg/malformed-json/empty.sarif 
b/gcc/testsuite/sarif-replay.dg/malformed-json/empty.sarif
new file mode 100644
index 00000000000..070677e3cf7
--- /dev/null
+++ b/gcc/testsuite/sarif-replay.dg/malformed-json/empty.sarif
@@ -0,0 +1,2 @@
+/* Empty file (apart from these comments).  */
+/* { dg-error "expected a JSON value but got EOF" "" { target *-*-* } 3 } */
-- 
2.26.3

Reply via email to