1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* { dg-do compile } */
/* { dg-options "-fdiagnostics-format=json" } */
struct s { int color; };
int test (struct s *ptr)
{
return ptr->colour;
}
/* { dg-begin-multiline-output "" }
[{"kind": "error",
"message": "'struct s' has no member named 'colour'; did you mean 'color'?",
"children": [],
"column-origin": 1,
"locations": [{"caret": {"file":
"line": 8,
"display-column": 15,
"byte-column": 15,
"column": 15},
"finish": {"file":
"line": 8,
"display-column": 20,
"byte-column": 20,
"column": 20}}],
"fixits": [{"start": {"file":
"line": 8,
"display-column": 15,
"byte-column": 15,
"column": 15},
"next": {"file":
"line": 8,
"display-column": 21,
"byte-column": 21,
"column": 21},
"string": "color"}],
"escape-source": false}]
{ dg-end-multiline-output "" } */
|