1 ; RUN: FileCheck -input-file %s %s
2 ; RUN: not FileCheck -check-prefix BAD1 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR1 %s
3 ; RUN: not FileCheck -check-prefix BAD2 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR2 %s
4 ; RUN: not FileCheck -check-prefix BAD3 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR3 %s
5 ; RUN: not FileCheck -check-prefix BAD4 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR4 %s
6 ; RUN: not FileCheck -check-prefix BAD5 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR5 %s
7 ; RUN: not FileCheck -check-prefix BAD6 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR6 %s
8 ; RUN: not FileCheck -check-prefix BAD7 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR7 %s
9 ; RUN: not FileCheck -check-prefix BAD8 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR8 %s
10 ; RUN: not FileCheck -check-prefix BAD9 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR9 %s
11 ; RUN: not FileCheck -check-prefix BAD10 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR10 %s
12 ; RUN: not FileCheck -check-prefix BAD11 -input-file %s %s 2>&1 | FileCheck -check-prefix ERR11 %s
17 17 CHECK: [[@LINE-3]] {{a}}aa
18 18 CHECK: [[@LINE-3]] {{b}}bb
19 19 CHECK: [[@LINE-3]] {{c}}cc
21 21 CHECK: [[@LINE-1]] {{foo}}bar
23 23 arst CHECK: [[@LINE]] {{a}}rst
25 25 BAD1: [[@LINE:cant-have-regex]]
26 26 ERR1: line-count.txt:[[#@LINE-1]]:12: error: invalid name in string variable definition
29 29 ERR2: line-count.txt:[[#@LINE-1]]:12: error: unexpected whitespace
32 32 ERR3: line-count.txt:[[#@LINE-1]]:17: error: unexpected whitespace
35 35 ERR4: line-count.txt:[[#@LINE-1]]:12: error: unexpected whitespace
38 38 ERR5: line-count.txt:[[#@LINE-1]]:17: error: unexpected whitespace
41 41 ERR6: line-count.txt:[[#@LINE-1]]:18: error: unexpected whitespace
44 44 ERR7: line-count.txt:[[#@LINE-1]]:19: error: unexpected whitespace
47 47 ERR8: line-count.txt:[[#@LINE-1]]:12: error: invalid pseudo numeric variable '@LIN'
50 50 ERR9: line-count.txt:[[#@LINE-1]]:17: error: unsupported operation '*'
53 53 ERR10: line-count.txt:[[#@LINE-1]]:19: error: invalid offset in expression 'x'
55 55 BAD11: [[@LINE-1x]]
56 56 ERR11: line-count.txt:[[#@LINE-1]]:20: error: unexpected characters at end of expression 'x'
58 58 CHECK: [[#@LINE]] CHECK
59 59 CHECK: [[# @LINE]] CHECK
60 60 CHECK: [[# @LINE ]] CHECK
62 62 CHECK: [[#@LINE-1]]
63 63 CHECK: [[# @LINE-1]] CHECK
64 64 CHECK: [[# @LINE -1]] CHECK
65 65 CHECK: [[# @LINE - 1]] CHECK
66 66 CHECK: [[# @LINE - 1 ]] CHECK