@@ -15,36 +15,129 @@ func testNoneMarkerCheck() {
1515func test0Fixits( ) {
1616 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}}
1717
18+ // CHECK: [[@LINE+1]]:80: error: expected fix-it verification within braces; example: '1-2=text' or 'none'
19+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{}}
20+
21+ // CHECK: [[@LINE+1]]:81: error: expected line offset after leading '+' or '-' in fix-it verification
22+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+}}
23+
24+ // CHECK: [[@LINE+1]]:81: error: expected line offset after leading '+' or '-' in fix-it verification
25+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{-}}
26+
27+ // CHECK: [[@LINE+1]]:81: error: expected '-' range separator in fix-it verification
28+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1}}
29+
30+ // CHECK: [[@LINE+1]]:82: error: expected colon-separated column number after line offset in fix-it verification
31+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{-1}}
32+
33+ // CHECK: [[@LINE+1]]:82: error: expected colon-separated column number after line offset in fix-it verification
34+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1}}
35+
36+ // CHECK: [[@LINE+1]]:82: error: expected column number after ':' in fix-it verification
37+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:}}
38+
39+ // CHECK: [[@LINE+1]]:83: error: expected column number after ':' in fix-it verification
40+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:}}
41+
42+ // CHECK: [[@LINE+1]]:83: error: expected '-' range separator in fix-it verification
43+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1}}
44+
45+ // CHECK: [[@LINE+1]]:84: error: expected '-' range separator in fix-it verification
46+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{-1:1}}
47+
48+ // CHECK: [[@LINE+1]]:83: error: expected column number after ':' in fix-it verification
49+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:-1}}
50+
51+ // CHECK: [[@LINE+1]]:82: error: expected line or column number in fix-it verification
52+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-}}
53+
54+ // CHECK: [[@LINE+1]]:84: error: expected line or column number in fix-it verification
55+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-}}
56+
57+ // CHECK: [[@LINE+1]]:85: error: expected line or column number in fix-it verification
58+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{-1:1-}}
59+
60+ // CHECK: [[@LINE+1]]:83: error: expected line offset after leading '+' or '-' in fix-it verification
61+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1--}}
62+
63+ // CHECK: [[@LINE+1]]:83: error: expected '=' after range in fix-it verification
64+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1}}
65+
66+ // CHECK: [[@LINE+1]]:85: error: expected '=' after range in fix-it verification
67+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-1}}
68+
69+ // CHECK: [[@LINE+1]]:86: error: expected '=' after range in fix-it verification
70+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:1-1}}
71+
72+ // CHECK: [[@LINE+1]]:83: error: expected line offset after leading '+' or '-' in fix-it verification
73+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1--:}}
74+
75+ // CHECK: [[@LINE+1]]:84: error: expected column number after ':' in fix-it verification
76+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1:}}
77+
78+ // CHECK: [[@LINE+1]]:86: error: expected column number after ':' in fix-it verification
79+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-1:}}
80+
81+ // CHECK: [[@LINE+1]]:87: error: expected column number after ':' in fix-it verification
82+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:1-1:}}
83+
84+ // CHECK: [[@LINE+1]]:85: error: expected '=' after range in fix-it verification
85+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1:1}}
86+
87+ // CHECK: [[@LINE+1]]:86: error: expected '=' after range in fix-it verification
88+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-+1:1}}
89+
90+ // CHECK: [[@LINE+1]]:87: error: expected '=' after range in fix-it verification
91+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-1:1}}
92+
93+ // CHECK: [[@LINE+1]]:89: error: expected '=' after range in fix-it verification
94+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:1--1:1}}
95+
96+ // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
97+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1=}}
98+
1899 // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
19100 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1=a}}
20101
21- // CHECK: [[@LINE+1]]:80: error: invalid column number in fix-it verification
102+ // CHECK: [[@LINE+1]]:80: error: expected line or column number in fix-it verification
22103 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{x-1=a}}
23104
24- // CHECK: [[@LINE+1]]:82: error: invalid column number in fix-it verification
105+ // CHECK: [[@LINE+1]]:82: error: expected line or column number in fix-it verification
25106 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-x=a}}
26107
27- // CHECK: [[@LINE+1]]:82: error: invalid column number in fix-it verification
108+ // CHECK: [[@LINE+1]]:82: error: expected column number after ':' in fix-it verification
28109 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:x-1=a}}
29110
30- // CHECK: [[@LINE+1]]:80: error: invalid line number in fix-it verification
111+ // CHECK: [[@LINE+1]]:80: error: expected line or column number in fix-it verification
31112 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{x:1-1=a}}
32113
33- // CHECK: [[@LINE+1]]:84: error: invalid column number in fix-it verification
114+ // CHECK: [[@LINE+1]]:81: error: expected line offset after leading '+' or '-' in fix-it verification
115+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+x:1-1=a}}
116+
117+ // CHECK: [[@LINE+1]]:84: error: expected column number after ':' in fix-it verification
34118 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1:x=a}}
35119
36- // CHECK: [[@LINE+1]]:82: error: invalid line number in fix-it verification
120+ // CHECK: [[@LINE+1]]:82: error: expected line or column number in fix-it verification
37121 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-x:1=a}}
38122
39- // CHECK: [[@LINE+1]]:82: error: invalid column number in fix-it verification
123+ // CHECK: [[@LINE+1]]:83: error: expected line offset after leading '+' or '-' in fix-it verification
124+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-+x:1=a}}
125+
126+ // CHECK: [[@LINE+1]]:82: error: expected column number after ':' in fix-it verification
40127 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:x-1:x=a}}
41128
42- // CHECK: [[@LINE+1]]:80: error: invalid line number in fix-it verification
129+ // CHECK: [[@LINE+1]]:80: error: expected line or column number in fix-it verification
43130 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{x:1-1:x=a}}
44131
45- // CHECK: [[@LINE+1]]:82: error: invalid column number in fix-it verification
132+ // CHECK: [[@LINE+1]]:81: error: expected line offset after leading '+' or '-' in fix-it verification
133+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+x:1-1:x=a}}
134+
135+ // CHECK: [[@LINE+1]]:82: error: expected column number after ':' in fix-it verification
46136 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:x-x:1=a}}
47137
138+ // CHECK: [[@LINE+1]]:82: error: expected column number after ':' in fix-it verification
139+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:x--x:1=a}}
140+
48141 // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
49142 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-1:1=a}}
50143
@@ -54,6 +147,15 @@ func test0Fixits() {
54147 // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
55148 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-1=a}}
56149
150+ // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
151+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{-1:1-1=a}}
152+
153+ // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
154+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-+1:1=a}}
155+
156+ // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
157+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:1-+1:1=a}}
158+
57159 // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
58160 undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1=a}} {{2-2=b}}
59161
@@ -95,13 +197,32 @@ func test1Fixits() {
95197 labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{15-18=xx}} {{15-18=aa}} {{none}}
96198
97199 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
98- labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{98:15-98:18=aa}}
200+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{200:15-200:18=aa}}
201+ // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
202+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{202:15-18=aa}}
203+ // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
204+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{15-204:18=aa}}
205+ // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
206+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{-0:15-+0:18=aa}}
207+ // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
208+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{15--0:18=aa}}
99209 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
100- labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{100 :15-18=aa}}
210+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {+0 :15-210: 18=aa}}
101211 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
102- labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{15-102:18=aa}}
212+ labeledFunc ( aa: 0 , // expected-error {{incorrect argument label in call (have 'aa:bbx:', expected 'aa:bb:')}} {{+1:15-+1:18=bb}}
213+ bbx: 1 )
214+ // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
215+ labeledFunc ( aa: 0 , // expected-error {{incorrect argument label in call (have 'aa:bbx:', expected 'aa:bb:')}} {{216:15-+1:18=bb}}
216+ bbx: 1 )
217+
103218 // CHECK: [[@LINE+1]]:121: error: expected fix-it not seen; actual fix-it seen: {{{{}}15-18=aa}}
104219 labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{61:15-18=aa}}
220+ // CHECK: [[@LINE+1]]:121: error: expected fix-it not seen; actual fix-it seen: {{{{}}15-18=aa}}
221+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{-1:15-18=aa}}
222+ // CHECK: [[@LINE+1]]:121: error: expected fix-it not seen; actual fix-it seen: {{{{}}15-18=aa}}
223+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{+0:15--1:18=aa}}
224+ // CHECK: [[@LINE+1]]:121: error: expected fix-it not seen; actual fix-it seen: {{{{}}15-18=aa}}
225+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{61:15-+1:18=aa}}
105226}
106227
107228func test2Fixits( ) {
0 commit comments