| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-fdiagnostics-format=json" } */ |
| 3 |
|
| 4 |
#warning message |
| 5 |
|
| 6 |
/* { dg-begin-multiline-output "" } |
| 7 |
[{"kind": "warning", |
| 8 |
"message": "#warning message", |
| 9 |
"option": "-Wcpp", |
| 10 |
{ dg-end-multiline-output "" } */ |
| 11 |
/* { dg-regexp " \"option_url\": \"https:\[^\n\r\"\]*#index-Wcpp\",\n" } */ |
| 12 |
/* { dg-begin-multiline-output "" } |
| 13 |
"children": [], |
| 14 |
"column-origin": 1, |
| 15 |
"locations": [{"caret": {"file": |
| 16 |
"line": 4, |
| 17 |
"display-column": 2, |
| 18 |
"byte-column": 2, |
| 19 |
"column": 2}, |
| 20 |
"finish": {"file": |
| 21 |
"line": 4, |
| 22 |
"display-column": 8, |
| 23 |
"byte-column": 8, |
| 24 |
"column": 8}}], |
| 25 |
"escape-source": false}] |
| 26 |
{ dg-end-multiline-output "" } */ |