Disable gnat.dg/socket1.adb on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / c-c++-common / diagnostic-format-json-2.c
blob557ccf8378b32501ee841c1d309b7f5e81574703
1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-format=json" } */
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\": \"warning\"" } */
11 /* { dg-regexp "\"message\": \"#warning message\"" } */
12 /* { dg-regexp "\"option\": \"-Wcpp\"" } */
13 /* { dg-regexp "\"option_url\": \"https:\[^\n\r\"\]*#index-Wcpp\"" } */
15 /* { dg-regexp "\"caret\": \{" } */
16 /* { dg-regexp "\"file\": \"\[^\n\r\"\]*diagnostic-format-json-2.c\"" } */
17 /* { dg-regexp "\"line\": 4" } */
18 /* { dg-regexp "\"column\": 2" } */
20 /* { dg-regexp "\"finish\": \{" } */
21 /* { dg-regexp "\"file\": \"\[^\n\r\"\]*diagnostic-format-json-2.c\"" } */
22 /* { dg-regexp "\"line\": 4" } */
23 /* { dg-regexp "\"column\": 8" } */
25 /* { dg-regexp "\"locations\": \[\[\{\}, \]*\]" } */
26 /* { dg-regexp "\"children\": \[\[\]\[\]\]" } */
27 /* { dg-regexp "\[\[\{\}, \]*\]" } */