testsuite: Add -Wno-psabi to pr104505.c
[official-gcc.git] / gcc / testsuite / c-c++-common / diagnostic-format-json-3.c
blobbb7b8dc5d1611f860a2969e7577d333681b01c95
1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-format=json -Werror" } */
4 #warning message
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 "\"column-origin\": 1" } */
12 /* { dg-regexp "\"escape-source\": false" } */
13 /* { dg-regexp "\"message\": \"#warning message\"" } */
14 /* { dg-regexp "\"option\": \"-Werror=cpp\"" } */
15 /* { dg-regexp "\"option_url\": \"https:\[^\n\r\"\]*#index-Wcpp\"" } */
17 /* { dg-regexp "\"caret\": \{" } */
18 /* { dg-regexp "\"file\": \"\[^\n\r\"\]*diagnostic-format-json-3.c\"" } */
19 /* { dg-regexp "\"line\": 4" } */
20 /* { dg-regexp "\"column\": 2" } */
21 /* { dg-regexp "\"display-column\": 2" } */
22 /* { dg-regexp "\"byte-column\": 2" } */
24 /* { dg-regexp "\"finish\": \{" } */
25 /* { dg-regexp "\"file\": \"\[^\n\r\"\]*diagnostic-format-json-3.c\"" } */
26 /* { dg-regexp "\"line\": 4" } */
27 /* { dg-regexp "\"column\": 8" } */
28 /* { dg-regexp "\"display-column\": 8" } */
29 /* { dg-regexp "\"byte-column\": 8" } */
31 /* { dg-regexp "\"locations\": \[\[\{\}, \]*\]" } */
32 /* { dg-regexp "\"children\": \[\[\]\[\]\]" } */
33 /* { dg-regexp "\[\[\{\}, \]*\]" } */