]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sarif-replay: add testcase for empty input file
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 20 Feb 2025 22:10:54 +0000 (17:10 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 20 Feb 2025 22:10:54 +0000 (17:10 -0500)
gcc/testsuite/ChangeLog:
* sarif-replay.dg/malformed-json/empty.sarif: New test.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/testsuite/sarif-replay.dg/malformed-json/empty.sarif [new file with mode: 0644]

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 (file)
index 0000000..070677e
--- /dev/null
@@ -0,0 +1,2 @@
+/* Empty file (apart from these comments).  */
+/* { dg-error "expected a JSON value but got EOF" "" { target *-*-* } 3 } */