comparison llvm/test/FileCheck/verbose.txt @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
1 ; RUN: %ProtectFileCheckOutput FileCheck -input-file %s %s 2>&1 \ 1 ; RUN: %ProtectFileCheckOutput \
2 ; RUN: | FileCheck -check-prefix QUIET --allow-empty %s 2 ; RUN: FileCheck --dump-input=never --input-file %s %s 2>&1 | \
3 ; RUN: %ProtectFileCheckOutput FileCheck -v -input-file %s %s 2>&1 \ 3 ; RUN: FileCheck --check-prefix QUIET --allow-empty %s
4 ; RUN: | FileCheck --strict-whitespace -check-prefix V %s 4
5 ; RUN: %ProtectFileCheckOutput FileCheck -vv -input-file %s %s 2>&1 \ 5 ; RUN: %ProtectFileCheckOutput \
6 ; RUN: | FileCheck --strict-whitespace -check-prefixes V,VV %s 6 ; RUN: FileCheck --dump-input=never -v --input-file %s %s 2>&1 | \
7 ; RUN: FileCheck --strict-whitespace --check-prefix V %s
8
9 ; RUN: %ProtectFileCheckOutput \
10 ; RUN: FileCheck --dump-input=never -vv --input-file %s %s 2>&1 | \
11 ; RUN: FileCheck --strict-whitespace --check-prefixes V,VV %s
12
13 ; RUN: %ProtectFileCheckOutput \
14 ; RUN: FileCheck --dump-input=never -v -v --input-file %s %s 2>&1 | \
15 ; RUN: FileCheck --strict-whitespace --check-prefix V %s
16
17 ; RUN: %ProtectFileCheckOutput \
18 ; RUN: FileCheck --dump-input=never -vv -vv --input-file %s %s 2>&1 | \
19 ; RUN: FileCheck --strict-whitespace --check-prefixes V,VV %s
20
21 ; RUN: %ProtectFileCheckOutput \
22 ; RUN: FileCheck --dump-input=never -v -vv --input-file %s %s 2>&1 | \
23 ; RUN: FileCheck --strict-whitespace --check-prefixes V,VV %s
24
25 ; RUN: %ProtectFileCheckOutput \
26 ; RUN: FileCheck --dump-input=never -vv -v --input-file %s %s 2>&1 | \
27 ; RUN: FileCheck --strict-whitespace --check-prefixes V,VV %s
28
29 ; END.
7 30
8 foo 31 foo
9 bar 32 bar
10 CHECK: foo 33 CHECK: foo
11 CHECK-NOT: raboof 34 CHECK-NOT: raboof
26 V-NEXT: {{^}}^~~{{$}} 49 V-NEXT: {{^}}^~~{{$}}
27 50
28 VV-NEXT: verbose.txt:[[@LINE-17]]:12: remark: {{C}}HECK-NOT: excluded string not found in input 51 VV-NEXT: verbose.txt:[[@LINE-17]]:12: remark: {{C}}HECK-NOT: excluded string not found in input
29 VV-NEXT: {{C}}HECK-NOT: raboof{{$}} 52 VV-NEXT: {{C}}HECK-NOT: raboof{{$}}
30 VV-NEXT: {{^}} ^{{$}} 53 VV-NEXT: {{^}} ^{{$}}
31 VV-NEXT: verbose.txt:[[@LINE-22]]:1: note: scanning from here 54 VV-NEXT: verbose.txt:[[@LINE-23]]:4: note: scanning from here
32 VV-NEXT: {{^}}bar{{$}} 55 VV-NEXT: {{^}}foo{{$}}
33 VV-NEXT: {{^}}^{{$}} 56 VV-NEXT: {{^}} ^{{$}}
57
58 STRVAR=foobar
59 STRVAR:foobar
60 CHECK: STRVAR=[[STRVAR:[a-z]+]]
61 CHECK-NEXT: STRVAR:[[STRVAR]]
62
63 V: verbose.txt:[[#@LINE-3]]:8: remark: {{C}}HECK: expected string found in input
64 V-NEXT: {{C}}HECK: {{STRVAR=\[\[STRVAR:\[a-z\]\+\]\]}}
65 V-NEXT: {{^}} ^{{$}}
66 V-NEXT: verbose.txt:[[#@LINE-8]]:1: note: found here
67 V-NEXT: {{^}}STRVAR=foobar{{$}}
68 V-NEXT: {{^}}^~~~~~~~~~~~~{{$}}
69 V-NEXT: verbose.txt:[[#@LINE-11]]:8: note: captured var "STRVAR"
70 V-NEXT: {{^}}STRVAR=foobar{{$}}
71 V-NEXT: {{^}} ^~~~~~{{$}}
72
73 V-NEXT: verbose.txt:[[#@LINE-12]]:13: remark: {{C}}HECK-NEXT: expected string found in input
74 V-NEXT: {{C}}HECK-NEXT: {{STRVAR:\[\[STRVAR\]\]}}
75 V-NEXT: {{^}} ^{{$}}
76 V-NEXT: verbose.txt:[[#@LINE-17]]:1: note: found here
77 V-NEXT: {{^}}STRVAR:foobar{{$}}
78 V-NEXT: {{^}}^~~~~~~~~~~~~{{$}}
79 V-NEXT: verbose.txt:[[#@LINE-20]]:1: note: with "STRVAR" equal to "foobar"
80 V-NEXT: {{^}}STRVAR:foobar{{$}}
81 V-NEXT: {{^}}^{{$}}
34 82
35 NUMVAR=42 83 NUMVAR=42
36 NUMVAR - 1:41 84 NUMVAR - 1:41
37 CHECK: NUMVAR=[[#NUMVAR:]] 85 CHECK: NUMVAR=[[#NUMVAR:]]
38 CHECK-NOT: [[#NUMVAR + 1]] 86 CHECK-NOT: [[#NUMVAR + 1]]
42 V-NEXT: {{C}}HECK: {{NUMVAR=[[][[]#NUMVAR:[]][]]$}} 90 V-NEXT: {{C}}HECK: {{NUMVAR=[[][[]#NUMVAR:[]][]]$}}
43 V-NEXT: {{^}} ^{{$}} 91 V-NEXT: {{^}} ^{{$}}
44 V-NEXT: verbose.txt:[[#@LINE-9]]:1: note: found here 92 V-NEXT: verbose.txt:[[#@LINE-9]]:1: note: found here
45 V-NEXT: {{^}}NUMVAR=42{{$}} 93 V-NEXT: {{^}}NUMVAR=42{{$}}
46 V-NEXT: {{^}}^~~~~~~~~{{$}} 94 V-NEXT: {{^}}^~~~~~~~~{{$}}
95 V-NEXT: verbose.txt:[[#@LINE-12]]:8: note: captured var "NUMVAR"
96 V-NEXT: NUMVAR=42
97 V-NEXT: ^~
47 98
48 V-NEXT: verbose.txt:[[#@LINE-9]]:13: remark: {{C}}HECK-NEXT: expected string found in input 99 V-NEXT: verbose.txt:[[#@LINE-12]]:13: remark: {{C}}HECK-NEXT: expected string found in input
49 V-NEXT: {{C}}HECK-NEXT: {{NUMVAR - 1:[[][[]#NUMVAR - 1[]][]]$}} 100 V-NEXT: {{C}}HECK-NEXT: {{NUMVAR - 1:[[][[]#NUMVAR - 1[]][]]$}}
50 V-NEXT: {{^}} ^{{$}} 101 V-NEXT: {{^}} ^{{$}}
51 V-NEXT: verbose.txt:[[#@LINE-15]]:1: note: found here 102 V-NEXT: verbose.txt:[[#@LINE-18]]:1: note: found here
52 V-NEXT: {{^}}NUMVAR - 1:41{{$}} 103 V-NEXT: {{^}}NUMVAR - 1:41{{$}}
53 V-NEXT: {{^}}^~~~~~~~~~~~~{{$}} 104 V-NEXT: {{^}}^~~~~~~~~~~~~{{$}}
54 V-NEXT: verbose.txt:[[#@LINE-18]]:1: note: with "NUMVAR - 1" equal to "41" 105 V-NEXT: verbose.txt:[[#@LINE-21]]:1: note: with "NUMVAR - 1" equal to "41"
55 V-NEXT: {{^}}NUMVAR - 1:41{{$}} 106 V-NEXT: {{^}}NUMVAR - 1:41{{$}}
56 V-NEXT: {{^}}^~~~~~~~~~~~~{{$}} 107 V-NEXT: {{^}}^{{$}}
57 108
58 VV-NEXT: verbose.txt:[[#@LINE-20]]:12: remark: {{C}}HECK-NOT: excluded string not found in input 109 VV-NEXT: verbose.txt:[[#@LINE-23]]:12: remark: {{C}}HECK-NOT: excluded string not found in input
59 VV-NEXT: {{C}}HECK-NOT: {{[[][[]#NUMVAR [+] 1[]][]]$}} 110 VV-NEXT: {{C}}HECK-NOT: {{[[][[]#NUMVAR [+] 1[]][]]$}}
60 VV-NEXT: {{^}} ^{{$}} 111 VV-NEXT: {{^}} ^{{$}}
61 VV-NEXT: verbose.txt:[[#@LINE-25]]:1: note: scanning from here 112 VV-NEXT: verbose.txt:[[#@LINE-29]]:10: note: scanning from here
62 VV-NEXT: {{^}}NUMVAR - 1:41{{$}} 113 VV-NEXT: {{^}}NUMVAR=42{{$}}
63 VV-NEXT: {{^}}^{{$}} 114 VV-NEXT: {{^}} ^{{$}}
64 115
65 before empty 116 before empty
66 117
67 after empty 118 after empty
68 CHECK: before empty 119 CHECK: before empty
138 VV: {{^}}^ 189 VV: {{^}}^
139 190
140 VV-NEXT: verbose.txt:[[@LINE-16]]:12: remark: {{C}}HECK-NOT: excluded string not found in input 191 VV-NEXT: verbose.txt:[[@LINE-16]]:12: remark: {{C}}HECK-NOT: excluded string not found in input
141 VV-NEXT: {{C}}HECK-NOT: {{[{][{]z[}][}]yx$}} 192 VV-NEXT: {{C}}HECK-NOT: {{[{][{]z[}][}]yx$}}
142 VV-NEXT: {{^}} ^{{$}} 193 VV-NEXT: {{^}} ^{{$}}
143 VV-NEXT: verbose.txt:[[@LINE-20]]:1: note: scanning from here 194 VV-NEXT: verbose.txt:[[@LINE-21]]:4: note: scanning from here
144 VV-NEXT: {{^C}}HECK: xyz{{$}} 195 VV-NEXT: {{^}}xyz{{$}}
145 VV-NEXT: {{^}}^{{$}} 196 VV-NEXT: {{^}} ^{{$}}
146 197
147 QUIET-NOT: {{.}} 198 QUIET-NOT: {{.}}
148 V-NOT: {{.}} 199 V-NOT: {{.}}