]> git.proxmox.com Git - rustc.git/blame - src/llvm/test/FileCheck/check-label.txt
Imported Upstream version 1.0.0~0alpha
[rustc.git] / src / llvm / test / FileCheck / check-label.txt
CommitLineData
1a4d82fc
JJ
1; RUN: FileCheck -input-file %s %s -check-prefix=CHECKOK
2; RUN: not FileCheck -input-file %s %s -check-prefix=CHECKFAIL 2>&1 | FileCheck %s -check-prefix=CHECKERROR
3
4label0:
5a
6b
7
8label1:
9b
10c
11
12label2:
13a
14c
15
16; CHECKOK-LABEL: {{^}}label0:
17; CHECKOK: {{^}}a
18; CHECKOK: {{^}}b
19
20; CHECKOK-LABEL: {{^}}label1:
21; CHECKOK: {{^}}b
22; CHECKOK: {{^}}c
23
24; CHECKOK-LABEL: {{^}}label2:
25; CHECKOK: {{^}}a
26; CHECKOK: {{^}}c
27
28; CHECKFAIL-LABEL: {{^}}label0:
29; CHECKFAIL: {{^}}a
30; CHECKFAIL: {{^}}b
31; CHECKFAIL: {{^}}c
32
33; CHECKERROR: expected string not found in input
34; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}c
35
36; CHECKFAIL-LABEL: {{^}}label1:
37; CHECKFAIL: {{^}}a
38; CHECKFAIL: {{^}}b
39; CHECKFAIL: {{^}}c
40
41; CHECKERROR: expected string not found in input
42; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}a
43
44; CHECKFAIL-LABEL: {{^}}label2:
45; CHECKFAIL: {{^}}a
46; CHECKFAIL: {{^}}b
47; CHECKFAIL: {{^}}c
48
49; CHECKERROR: expected string not found in input
50; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}b
51