150
|
1 ; RUN: FileCheck -input-file %s %s -check-prefix=CHECKOK
|
|
2 ;
|
|
3 ; RUN: %ProtectFileCheckOutput \
|
|
4 ; RUN: not FileCheck -input-file %s %s -check-prefix=CHECKFAIL 2>&1 \
|
|
5 ; RUN: | FileCheck %s -check-prefix=CHECKERROR
|
|
6
|
|
7 label0:
|
|
8 a
|
|
9 b
|
|
10
|
|
11 label1:
|
|
12 b
|
|
13 c
|
|
14
|
|
15 label2:
|
|
16 a
|
|
17 c
|
|
18
|
|
19 ; CHECKOK-LABEL: {{^}}label0:
|
|
20 ; CHECKOK: {{^}}a
|
|
21 ; CHECKOK: {{^}}b
|
|
22
|
|
23 ; CHECKOK-LABEL: {{^}}label1:
|
|
24 ; CHECKOK: {{^}}b
|
|
25 ; CHECKOK: {{^}}c
|
|
26
|
|
27 ; CHECKOK-LABEL: {{^}}label2:
|
|
28 ; CHECKOK: {{^}}a
|
|
29 ; CHECKOK: {{^}}c
|
|
30
|
|
31 ; CHECKFAIL-LABEL: {{^}}label0:
|
|
32 ; CHECKFAIL: {{^}}a
|
|
33 ; CHECKFAIL: {{^}}b
|
|
34 ; CHECKFAIL: {{^}}c
|
|
35
|
|
36 ; CHECKERROR: expected string not found in input
|
|
37 ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}c
|
|
38
|
|
39 ; CHECKFAIL-LABEL: {{^}}label1:
|
|
40 ; CHECKFAIL: {{^}}a
|
|
41 ; CHECKFAIL: {{^}}b
|
|
42 ; CHECKFAIL: {{^}}c
|
|
43
|
|
44 ; CHECKERROR: expected string not found in input
|
|
45 ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}a
|
|
46
|
|
47 ; CHECKFAIL-LABEL: {{^}}label2:
|
|
48 ; CHECKFAIL: {{^}}a
|
|
49 ; CHECKFAIL: {{^}}b
|
|
50 ; CHECKFAIL: {{^}}c
|
|
51
|
|
52 ; CHECKERROR: expected string not found in input
|
|
53 ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}b
|
|
54
|