annotate llvm/test/FileCheck/line-count.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: FileCheck -input-file %s %s
anatofuz
parents:
diff changeset
2 ; RUN: %ProtectFileCheckOutput not FileCheck -check-prefix BAD1 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR1 %s
anatofuz
parents:
diff changeset
3 ; RUN: %ProtectFileCheckOutput not FileCheck -check-prefix BAD2 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR2 %s
anatofuz
parents:
diff changeset
4 ; RUN: %ProtectFileCheckOutput not FileCheck -check-prefix BAD3 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR3 %s
anatofuz
parents:
diff changeset
5 ; RUN: %ProtectFileCheckOutput not FileCheck -check-prefix BAD4 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR4 %s
anatofuz
parents:
diff changeset
6 ; RUN: %ProtectFileCheckOutput not FileCheck -check-prefix BAD5 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR5 %s
anatofuz
parents:
diff changeset
7 ; RUN: %ProtectFileCheckOutput not FileCheck -check-prefix BAD6 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR6 %s
anatofuz
parents:
diff changeset
8 ; RUN: %ProtectFileCheckOutput not FileCheck -check-prefix BAD7 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR7 %s
anatofuz
parents:
diff changeset
9 ; RUN: %ProtectFileCheckOutput not FileCheck -check-prefix BAD8 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR8 %s
anatofuz
parents:
diff changeset
10 ; RUN: %ProtectFileCheckOutput not FileCheck -check-prefix BAD9 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR9 %s
anatofuz
parents:
diff changeset
11 ; RUN: %ProtectFileCheckOutput not FileCheck -check-prefix BAD10 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR10 %s
anatofuz
parents:
diff changeset
12 ; RUN: %ProtectFileCheckOutput not FileCheck -check-prefix BAD11 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR11 %s
anatofuz
parents:
diff changeset
13 13
anatofuz
parents:
diff changeset
14 14 aaa
anatofuz
parents:
diff changeset
15 15 bbb
anatofuz
parents:
diff changeset
16 16 ccc
anatofuz
parents:
diff changeset
17 17 CHECK: [[@LINE-3]] {{a}}aa
anatofuz
parents:
diff changeset
18 18 CHECK: [[@LINE-3]] {{b}}bb
anatofuz
parents:
diff changeset
19 19 CHECK: [[@LINE-3]] {{c}}cc
anatofuz
parents:
diff changeset
20 20 foobar
anatofuz
parents:
diff changeset
21 21 CHECK: [[@LINE-1]] {{foo}}bar
anatofuz
parents:
diff changeset
22 22
anatofuz
parents:
diff changeset
23 23 arst CHECK: [[@LINE]] {{a}}rst
anatofuz
parents:
diff changeset
24 24
anatofuz
parents:
diff changeset
25 25 BAD1: [[@LINE:cant-have-regex]]
anatofuz
parents:
diff changeset
26 26 ERR1: line-count.txt:[[#@LINE-1]]:12: error: invalid name in string variable definition
anatofuz
parents:
diff changeset
27 27
anatofuz
parents:
diff changeset
28 28 BAD2: [[ @LINE]]
anatofuz
parents:
diff changeset
29 29 ERR2: line-count.txt:[[#@LINE-1]]:12: error: unexpected whitespace
anatofuz
parents:
diff changeset
30 30
anatofuz
parents:
diff changeset
31 31 BAD3: [[@LINE ]]
anatofuz
parents:
diff changeset
32 32 ERR3: line-count.txt:[[#@LINE-1]]:17: error: unexpected whitespace
anatofuz
parents:
diff changeset
33 33
anatofuz
parents:
diff changeset
34 34 BAD4: [[ @LINE-1]]
anatofuz
parents:
diff changeset
35 35 ERR4: line-count.txt:[[#@LINE-1]]:12: error: unexpected whitespace
anatofuz
parents:
diff changeset
36 36
anatofuz
parents:
diff changeset
37 37 BAD5: [[@LINE -1]]
anatofuz
parents:
diff changeset
38 38 ERR5: line-count.txt:[[#@LINE-1]]:17: error: unexpected whitespace
anatofuz
parents:
diff changeset
39 39
anatofuz
parents:
diff changeset
40 40 BAD6: [[@LINE- 1]]
anatofuz
parents:
diff changeset
41 41 ERR6: line-count.txt:[[#@LINE-1]]:18: error: unexpected whitespace
anatofuz
parents:
diff changeset
42 42
anatofuz
parents:
diff changeset
43 43 BAD7: [[@LINE-1 ]]
anatofuz
parents:
diff changeset
44 44 ERR7: line-count.txt:[[#@LINE-1]]:19: error: unexpected whitespace
anatofuz
parents:
diff changeset
45 45
anatofuz
parents:
diff changeset
46 46 BAD8: [[@LIN]]
anatofuz
parents:
diff changeset
47 47 ERR8: line-count.txt:[[#@LINE-1]]:12: error: invalid pseudo numeric variable '@LIN'
anatofuz
parents:
diff changeset
48 48
anatofuz
parents:
diff changeset
49 49 BAD9: [[@LINE*2]]
anatofuz
parents:
diff changeset
50 50 ERR9: line-count.txt:[[#@LINE-1]]:17: error: unsupported operation '*'
anatofuz
parents:
diff changeset
51 51
anatofuz
parents:
diff changeset
52 52 BAD10: [[@LINE-x]]
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
53 53 ERR10: line-count.txt:[[#@LINE-1]]:19: error: invalid operand format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
54 54 ERR10-NEXT: 52 {{B}}AD10: {{\[\[@LINE-x\]\]}}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
55 55 ERR10-NEXT: {{^}} ^{{$}}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
56 56
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
57 57 BAD11: [[@LINE-1x]]
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
58 58 ERR11: line-count.txt:[[#@LINE-1]]:20: error: unexpected characters at end of expression 'x'
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
59 59
150
anatofuz
parents:
diff changeset
60 ; RUN: %ProtectFileCheckOutput \
anatofuz
parents:
diff changeset
61 ; RUN: not FileCheck -check-prefix BAD12 -input-file %s %s 2>&1 \
anatofuz
parents:
diff changeset
62 ; RUN: | FileCheck -check-prefix ERR12 %s
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
63 63
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
64 64 BAD12: [[#@LINE-1]] NOT HERE
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
65 65 ERR12: note: with "@LINE-1" equal to "63"
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
66 66
150
anatofuz
parents:
diff changeset
67 ; RUN: %ProtectFileCheckOutput \
anatofuz
parents:
diff changeset
68 ; RUN: not FileCheck --check-prefix BAD13 --input-file %s %s 2>&1 \
anatofuz
parents:
diff changeset
69 ; RUN: | FileCheck --check-prefix ERR13 %s
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
70 70
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
71 71 BAD13: [[@LINE-0xA]]
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
72 72 ERR13: line-count.txt:[[#@LINE-1]]:20: error: unexpected characters at end of expression 'xA'
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
73 73
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
74 74 CHECK: [[#@LINE]] CHECK
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
75 75 CHECK: [[# @LINE]] CHECK
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
76 76 CHECK: [[# @LINE ]] CHECK
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
77 77
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
78 78 CHECK: [[#@LINE-1]]
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
79 79 CHECK: [[# @LINE-1]] CHECK
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
80 80 CHECK: [[# @LINE -1]] CHECK
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
81 81 CHECK: [[# @LINE - 1]] CHECK
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
82 82 CHECK: [[# @LINE - 1 ]] CHECK