2 ! { dg-options "-fdiagnostics-format=json -Werror" }
6 ! Use dg-regexp to consume the JSON output starting with
7 ! the innermost values, and working outwards.
8 ! We can't rely on any ordering of the keys.
10 ! { dg-regexp "\"kind\": \"error\"" }
11 ! { dg-regexp "\"message\": \"#warning message\"" }
12 ! { dg-regexp "\"option\": \"-Werror=cpp\"" }
14 ! { dg-regexp "\"caret\": \{" }
15 ! { dg-regexp "\"file\": \"\[^\n\r\"\]*diagnostic-format-json-3.F90\"" }
16 ! { dg-regexp "\"line\": 4" }
17 ! { dg-regexp "\"column\": 2" }
19 ! { dg-regexp "\"finish\": \{" }
20 ! { dg-regexp "\"file\": \"\[^\n\r\"\]*diagnostic-format-json-3.F90\"" }
21 ! { dg-regexp "\"line\": 4" }
22 ! { dg-regexp "\"column\": 8" }
24 ! { dg-regexp "\"locations\": \[\[\{\}, \]*\]" }
25 ! { dg-regexp "\"children\": \[\[\]\[\]\]" }
26 ! { dg-regexp "\[\[\{\}, \]*\]" }