1 ;---------------------------------------------------------------------
2 ; RUN: not FileCheck -allow-deprecated-dag-overlap -input-file %s %s \
3 ; RUN: -check-prefix=EndAfterEnd
4 ; RUN: FileCheck -input-file %s %s -check-prefix=EndAfterEnd
6 new match end after old match end
13 (abc<mno>xyz <mno>xyz)
14 (abc<mno>xyz c<mno>xyz)
15 (abc<mno>xyz abc<mno>xyz)
18 ; EndAfterEnd: __EndAfterEnd
21 ; EndAfterEnd-DAG: <mno>
23 ; EndAfterEnd-NOT: {{.}}
24 ; EndAfterEnd-SAME: ){{$}}
27 ; EndAfterEnd-DAG: <mno>
28 ; EndAfterEnd-DAG: xyz
29 ; EndAfterEnd-NOT: {{.}}
30 ; EndAfterEnd-SAME: ){{$}}
33 ; EndAfterEnd-DAG: <mno>
34 ; EndAfterEnd-DAG: >xyz
35 ; EndAfterEnd-NOT: {{.}}
36 ; EndAfterEnd-SAME: ){{$}}
39 ; EndAfterEnd-DAG: <mno>
40 ; EndAfterEnd-DAG: no>xyz
41 ; EndAfterEnd-NOT: {{.}}
42 ; EndAfterEnd-SAME: ){{$}}
45 ; EndAfterEnd-DAG: <mno>
46 ; EndAfterEnd-DAG: <mno>xyz
47 ; EndAfterEnd-NOT: {{.}}
48 ; EndAfterEnd-SAME: ){{$}}
51 ; EndAfterEnd-DAG: <mno>
52 ; EndAfterEnd-DAG: c<mno>xyz
53 ; EndAfterEnd-NOT: {{.}}
54 ; EndAfterEnd-SAME: ){{$}}
57 ; EndAfterEnd-DAG: <mno>
58 ; EndAfterEnd-DAG: abc<mno>xyz
59 ; EndAfterEnd-NOT: {{.}}
60 ; EndAfterEnd-SAME: ){{$}}
62 ; EndAfterEnd: __EndAfterEnd
64 ;---------------------------------------------------------------------
65 ; RUN: not FileCheck -allow-deprecated-dag-overlap -input-file %s %s \
66 ; RUN: -check-prefix=EndRightAfterEnd
67 ; RUN: FileCheck -input-file %s %s -check-prefix=EndRightAfterEnd
69 new match end right after old match end
77 (abc<mno>xyz abc<mno>x)
80 ; EndRightAfterEnd: __EndRightAfterEnd
82 ; EndRightAfterEnd: {{^}}(
83 ; EndRightAfterEnd-DAG: <mno>
84 ; EndRightAfterEnd-DAG: x
85 ; EndRightAfterEnd-NOT: {{.}}
86 ; EndRightAfterEnd-SAME: yz){{$}}
88 ; EndRightAfterEnd: {{^}}(
89 ; EndRightAfterEnd-DAG: <mno>
90 ; EndRightAfterEnd-DAG: >x
91 ; EndRightAfterEnd-NOT: {{.}}
92 ; EndRightAfterEnd-SAME: ){{$}}
94 ; EndRightAfterEnd: {{^}}(
95 ; EndRightAfterEnd-DAG: <mno>
96 ; EndRightAfterEnd-DAG: no>x
97 ; EndRightAfterEnd-NOT: {{.}}
98 ; EndRightAfterEnd-SAME: ){{$}}
100 ; EndRightAfterEnd: {{^}}(
101 ; EndRightAfterEnd-DAG: <mno>
102 ; EndRightAfterEnd-DAG: <mno>x
103 ; EndRightAfterEnd-NOT: {{.}}
104 ; EndRightAfterEnd-SAME: ){{$}}
106 ; EndRightAfterEnd: {{^}}(
107 ; EndRightAfterEnd-DAG: <mno>
108 ; EndRightAfterEnd-DAG: c<mno>x
109 ; EndRightAfterEnd-NOT: {{.}}
110 ; EndRightAfterEnd-SAME: ){{$}}
112 ; EndRightAfterEnd: {{^}}(
113 ; EndRightAfterEnd-DAG: <mno>
114 ; EndRightAfterEnd-DAG: abc<mno>x
115 ; EndRightAfterEnd-NOT: {{.}}
116 ; EndRightAfterEnd-SAME: ){{$}}
118 ; EndRightAfterEnd: __EndRightAfterEnd
120 ;---------------------------------------------------------------------
121 ; RUN: not FileCheck -allow-deprecated-dag-overlap -input-file %s %s \
122 ; RUN: -check-prefix=EndAtEnd
123 ; RUN: FileCheck -input-file %s %s -check-prefix=EndAtEnd
125 new match end at old match end
132 (abc<mno>xyz abc<mno>)
135 ; EndAtEnd: __EndAtEnd
138 ; EndAtEnd-DAG: <mno>
140 ; EndAtEnd-NOT: {{.}}
141 ; EndAtEnd-SAME: ){{$}}
144 ; EndAtEnd-DAG: <mno>
146 ; EndAtEnd-NOT: {{.}}
147 ; EndAtEnd-SAME: ){{$}}
150 ; EndAtEnd-DAG: <mno>
151 ; EndAtEnd-DAG: <mno>
152 ; EndAtEnd-NOT: {{.}}
153 ; EndAtEnd-SAME: ){{$}}
156 ; EndAtEnd-DAG: <mno>
157 ; EndAtEnd-DAG: c<mno>
158 ; EndAtEnd-NOT: {{.}}
159 ; EndAtEnd-SAME: ){{$}}
162 ; EndAtEnd-DAG: <mno>
163 ; EndAtEnd-DAG: abc<mno>
164 ; EndAtEnd-NOT: {{.}}
165 ; EndAtEnd-SAME: ){{$}}
167 ; EndAtEnd: __EndAtEnd
169 ;---------------------------------------------------------------------
170 ; RUN: not FileCheck -allow-deprecated-dag-overlap -input-file %s %s \
171 ; RUN: -check-prefix=EndWithin
172 ; RUN: FileCheck -input-file %s %s -check-prefix=EndWithin
174 new match end within old match
183 ; EndWithin: __EndWithin
186 ; EndWithin-DAG: <mno>
188 ; EndWithin-NOT: {{.}}
189 ; EndWithin-SAME: ){{$}}
192 ; EndWithin-DAG: <mno>
194 ; EndWithin-NOT: {{.}}
195 ; EndWithin-SAME: ){{$}}
198 ; EndWithin-DAG: <mno>
200 ; EndWithin-NOT: {{.}}
201 ; EndWithin-SAME: ){{$}}
204 ; EndWithin-DAG: <mno>
205 ; EndWithin-DAG: abc<m
206 ; EndWithin-NOT: {{.}}
207 ; EndWithin-SAME: ){{$}}
209 ; EndWithin: __EndWithin
211 ;---------------------------------------------------------------------
212 ; RUN: not FileCheck -allow-deprecated-dag-overlap -input-file %s %s \
213 ; RUN: -check-prefix=EndRightAfterStart
214 ; RUN: FileCheck -input-file %s %s -check-prefix=EndRightAfterStart
216 new match end right after old match start
224 ; EndRightAfterStart: __EndRightAfterStart
226 ; EndRightAfterStart: {{^}}(
227 ; EndRightAfterStart-DAG: <mno>
228 ; EndRightAfterStart-DAG: <
229 ; EndRightAfterStart-NOT: {{.}}
230 ; EndRightAfterStart-SAME: ){{$}}
232 ; EndRightAfterStart: {{^}}(
233 ; EndRightAfterStart-DAG: <mno>
234 ; EndRightAfterStart-DAG: c<
235 ; EndRightAfterStart-NOT: {{.}}
236 ; EndRightAfterStart-SAME: ){{$}}
238 ; EndRightAfterStart: {{^}}(
239 ; EndRightAfterStart-DAG: <mno>
240 ; EndRightAfterStart-DAG: abc<
241 ; EndRightAfterStart-NOT: {{.}}
242 ; EndRightAfterStart-SAME: ){{$}}
244 ; EndRightAfterStart: __EndRightAfterStart
246 ;---------------------------------------------------------------------
247 ; RUN: FileCheck -allow-deprecated-dag-overlap -input-file %s %s \
248 ; RUN: -check-prefix=EndAtStart
249 ; RUN: FileCheck -input-file %s %s -check-prefix=EndAtStart
251 new match end at old match start
258 ; EndAtStart: __EndAtStart
261 ; EndAtStart-DAG: <mno>
263 ; EndAtStart-DAG: xyz
264 ; EndAtStart-NOT: {{.}}
265 ; EndAtStart-SAME: ){{$}}
268 ; EndAtStart-DAG: <mno>
269 ; EndAtStart-DAG: abc
270 ; EndAtStart-DAG: xyz
271 ; EndAtStart-NOT: {{.}}
272 ; EndAtStart-SAME: ){{$}}
274 ; EndAtStart: __EndAtStart
276 ;---------------------------------------------------------------------
277 ; RUN: FileCheck -allow-deprecated-dag-overlap -input-file %s %s \
278 ; RUN: -check-prefix=EndBeforeStart
279 ; RUN: FileCheck -input-file %s %s -check-prefix=EndBeforeStart
281 new match end before old match start
288 ; EndBeforeStart: __EndBeforeStart
290 ; EndBeforeStart: {{^}}(
291 ; EndBeforeStart-DAG: <mno>
292 ; EndBeforeStart-DAG: b
293 ; EndBeforeStart-DAG: xyz
294 ; EndBeforeStart-NOT: {{.}}
295 ; EndBeforeStart-SAME: ){{$}}
297 ; EndBeforeStart: {{^}}(
298 ; EndBeforeStart-DAG: <mno>
299 ; EndBeforeStart-DAG: ab
300 ; EndBeforeStart-DAG: xyz
301 ; EndBeforeStart-NOT: {{.}}
302 ; EndBeforeStart-SAME: ){{$}}
304 ; EndBeforeStart: __EndBeforeStart