1 ; RUN: FileCheck -input-file %s %s 2>&1 | FileCheck -check-prefix QUIET --allow-empty %s
2 ; RUN: FileCheck -v -input-file %s %s 2>&1 | FileCheck --strict-whitespace -check-prefix V %s
3 ; RUN: FileCheck -vv -input-file %s %s 2>&1 | FileCheck --strict-whitespace -check-prefixes V,VV %s
11 V: verbose.txt:[[@LINE-4]]:8: remark: {{C}}HECK: expected string found in input
12 V-NEXT: {{C}}HECK: foo{{$}}
14 V-NEXT: verbose.txt:[[@LINE-9]]:1: note: found here
18 V-NEXT: verbose.txt:[[@LINE-9]]:13: remark: {{C}}HECK-NEXT: expected string found in input
19 V-NEXT: {{C}}HECK-NEXT: bar{{$}}
21 V-NEXT: verbose.txt:[[@LINE-15]]:1: note: found here
25 VV-NEXT: verbose.txt:[[@LINE-17]]:12: remark: {{C}}HECK-NOT: excluded string not found in input
26 VV-NEXT: {{C}}HECK-NOT: raboof{{$}}
28 VV-NEXT: verbose.txt:[[@LINE-22]]:1: note: scanning from here
29 VV-NEXT: {{^}}bar{{$}}
34 CHECK: NUMVAR=[[#NUMVAR:]]
35 CHECK-NOT: [[#NUMVAR + 1]]
36 CHECK-NEXT: NUMVAR - 1:[[#NUMVAR - 1]]
38 V: verbose.txt:[[#@LINE-4]]:8: remark: {{C}}HECK: expected string found in input
39 V-NEXT: {{C}}HECK: {{NUMVAR=[[][[]#NUMVAR:[]][]]$}}
41 V-NEXT: verbose.txt:[[#@LINE-9]]:1: note: found here
42 V-NEXT: {{^}}NUMVAR=42{{$}}
43 V-NEXT: {{^}}^~~~~~~~~{{$}}
45 V-NEXT: verbose.txt:[[#@LINE-9]]:13: remark: {{C}}HECK-NEXT: expected string found in input
46 V-NEXT: {{C}}HECK-NEXT: {{NUMVAR - 1:[[][[]#NUMVAR - 1[]][]]$}}
48 V-NEXT: verbose.txt:[[#@LINE-15]]:1: note: found here
49 V-NEXT: {{^}}NUMVAR - 1:41{{$}}
50 V-NEXT: {{^}}^~~~~~~~~~~~~{{$}}
51 V-NEXT: verbose.txt:[[#@LINE-18]]:1: note: with "NUMVAR - 1" equal to "41"
52 V-NEXT: {{^}}NUMVAR - 1:41{{$}}
53 V-NEXT: {{^}}^~~~~~~~~~~~~{{$}}
55 VV-NEXT: verbose.txt:[[#@LINE-20]]:12: remark: {{C}}HECK-NOT: excluded string not found in input
56 VV-NEXT: {{C}}HECK-NOT: {{[[][[]#NUMVAR [+] 1[]][]]$}}
58 VV-NEXT: verbose.txt:[[#@LINE-25]]:1: note: scanning from here
59 VV-NEXT: {{^}}NUMVAR - 1:41{{$}}
67 CHECK-NEXT: after empty
69 V: verbose.txt:[[@LINE-4]]:8: remark: {{C}}HECK: expected string found in input
70 V-NEXT: {{C}}HECK: before empty{{$}}
72 V-NEXT: verbose.txt:[[@LINE-10]]:1: note: found here
73 V-NEXT: {{^}}before empty{{$}}
74 V-NEXT: {{^}}^~~~~~~~~~~~{{$}}
76 V-NEXT: verbose.txt:[[@LINE-10]]:13: remark: {{C}}HECK-EMPTY: expected string found in input
77 V-NEXT: {{C}}HECK-EMPTY:{{$}}
79 V-NEXT: verbose.txt:[[@LINE-16]]:1: note: found here
83 V-NEXT: verbose.txt:[[@LINE-16]]:13: remark: {{C}}HECK-NEXT: expected string found in input
84 V-NEXT: {{C}}HECK-NEXT: after empty{{$}}
86 V-NEXT: verbose.txt:[[@LINE-22]]:1: note: found here
87 V-NEXT: {{^}}after empty{{$}}
88 V-NEXT: {{^}}^~~~~~~~~~~{{$}}
95 V-NEXT: verbose.txt:[[@LINE-3]]:12: remark: {{C}}HECK-DAG: expected string found in input
96 V-NEXT: {{C}}HECK-DAG: abcdef
98 V-NEXT: verbose.txt:[[@LINE-8]]:1: note: found here
99 V-NEXT: {{^}}abcdef{{$}}
100 V-NEXT: {{^}}^~~~~~{{$}}
102 VV-NEXT: verbose.txt:[[@LINE-9]]:12: remark: {{C}}HECK-DAG: expected string found in input
103 VV-NEXT: {{C}}HECK-DAG: def
104 VV-NEXT: {{^}} ^{{$}}
105 VV-NEXT: verbose.txt:[[@LINE-15]]:4: note: found here
106 VV-NEXT: {{^abcdef$}}
108 VV-NEXT: verbose.txt:[[@LINE-18]]:1: note: match discarded, overlaps earlier DAG match here
109 VV-NEXT: {{^}}abcdef{{$}}
110 VV-NEXT: {{^}}^~~~~~{{$}}
112 V-NEXT: verbose.txt:[[@LINE-19]]:12: remark: {{C}}HECK-DAG: expected string found in input
113 V-NEXT: {{C}}HECK-DAG: def
115 V-NEXT: verbose.txt:[[@LINE-24]]:4: note: found here
123 V: verbose.txt:[[@LINE-3]]:8: remark: {{C}}HECK: expected string found in input
124 V-NEXT: {{C}}HECK: xyz{{$}}
126 V-NEXT: verbose.txt:[[@LINE-7]]:1: note: found here
127 V-NEXT: {{^}}xyz{{$}}
128 V-NEXT: {{^}}^~~{{$}}
130 VV-NEXT: verbose.txt:[[@LINE-9]]:19: remark: implicit EOF: expected string found in input
131 VV-NEXT: {{C}}HECK-NOT: {{[{][{]z[}][}]yx$}}
132 VV-NEXT: {{^}} ^{{$}}
133 VV-NEXT: verbose.txt:[[@LINE+13]]:1: note: found here
137 VV-NEXT: verbose.txt:[[@LINE-16]]:12: remark: {{C}}HECK-NOT: excluded string not found in input
138 VV-NEXT: {{C}}HECK-NOT: {{[{][{]z[}][}]yx$}}
139 VV-NEXT: {{^}} ^{{$}}
140 VV-NEXT: verbose.txt:[[@LINE-20]]:1: note: scanning from here
141 VV-NEXT: {{^C}}HECK: xyz{{$}}