Skip to content

Commit 631e6f3

Browse files
committed
Reproducible
1 parent 68981cf commit 631e6f3

File tree

6 files changed

+34
-0
lines changed

6 files changed

+34
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
; CHECK-NOT: hello world hello world
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hello world hello world
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; RUN: cat %S/filecheck.input | (%FILECHECK_EXEC %S/filecheck.check 2>&1; test $? = 1) | %FILECHECK_TESTER_EXEC %s --match-full-lines -check-prefix=NO_OPTION
2+
; RUN: cat %S/filecheck.input | (%FILECHECK_EXEC %S/filecheck.check --strict-whitespace 2>&1; test $? = 0) | %FILECHECK_TESTER_EXEC %s --match-full-lines -check-prefix=OPTION
3+
4+
; NO_OPTION: {{^.*}}FileCheck{{$}}
5+
; NO_OPTION: {{^.*}}filecheck.check:1:14: error: CHECK-NOT: excluded string found in input{{$}}
6+
; NO_OPTION: ; CHECK-NOT: hello world hello world
7+
; NO_OPTION: ^
8+
; NO_OPTION: {{^<stdin>:1:1: note: found here$}}
9+
; NO_OPTION: hello world hello world
10+
; NO_OPTION: ^~~~~~~~~~~~~~~~~~~~~~~
11+
; TODO: error: OPTION-EMPTY is not on the line after the previous match
12+
; OPTION-EMPTY
13+
14+
; OPTION: {{^.*}}FileCheck{{$}}
15+
; OPTION-EMPTY:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
; CHECK: hello world hello world
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hello world hello world
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; RUN: cat %S/filecheck.input | %FILECHECK_EXEC %S/filecheck.check | %FILECHECK_TESTER_EXEC %s --match-full-lines -check-prefix=NO_OPTION
2+
; RUN: cat %S/filecheck.input | (%FILECHECK_EXEC %S/filecheck.check --strict-whitespace 2>&1; test $? = 1) | %FILECHECK_TESTER_EXEC %s --strict-whitespace --match-full-lines -check-prefix=OPTION
3+
4+
; NO_OPTION: {{^.*}}FileCheck{{$}}
5+
; NO_OPTION-EMPTY:
6+
7+
; OPTION:{{^.*}}FileCheck{{$}}
8+
; OPTION:{{^.*}}filecheck.check:1:10: error: CHECK: expected string not found in input{{$}}
9+
; OPTION:; CHECK: hello world hello world
10+
; OPTION: ^
11+
; OPTION:{{^<stdin>:.*:.*: note: scanning from here$}}
12+
; OPTION:hello world hello world
13+
; OPTION:^
14+
; TODO: error: OPTION-EMPTY is not on the line after the previous match
15+
; OPTION-EMPTY

0 commit comments

Comments
 (0)