| 1 |
/* Check that "json" and "json-stderr" are synonymous when used as |
| 2 |
arguments to "-fdiagnostics-format=". */ |
| 3 |
/* { dg-do compile } */ |
| 4 |
/* { dg-options "-fdiagnostics-format=json-stderr" } */ |
| 5 |
|
| 6 |
#error message |
| 7 |
|
| 8 |
/* { dg-begin-multiline-output "" } |
| 9 |
[{"kind": "error", |
| 10 |
"message": "#error message", |
| 11 |
"children": [], |
| 12 |
"column-origin": 1, |
| 13 |
"locations": [{"caret": {"file": |
| 14 |
"line": 6, |
| 15 |
"display-column": 2, |
| 16 |
"byte-column": 2, |
| 17 |
"column": 2}, |
| 18 |
"finish": {"file": |
| 19 |
"line": 6, |
| 20 |
"display-column": 6, |
| 21 |
"byte-column": 6, |
| 22 |
"column": 6}}], |
| 23 |
"escape-source": false}] |
| 24 |
{ dg-end-multiline-output "" } */ |