mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
8c5705fbc6
This patch removes two assertions that were preventing writing of a test that checked an empty line followed by some text. For example: CHECK: {{^$}} CHECK-NEXT: foo() The assertion was because the current location the CHECK-NEXT was scanning from was the start of the buffer. A similar issue occurred with CHECK-SAME. These assertions don't protect against anything, as there is already an error check that checks that CHECK-NEXT/EMPTY/SAME don't appear first in the checks, and the following code works fine if the pointer is at the start of the input. Reviewed by: probinson, thopre, jdenny Differential Revision: https://reviews.llvm.org/D58784 llvm-svn: 355928
17 lines
331 B
Plaintext
17 lines
331 B
Plaintext
some text
|
|
more text
|
|
|
|
RUN: FileCheck %s --check-prefix=NEXT --input-file=%s
|
|
NEXT: {{^}}
|
|
NEXT-NEXT: more text
|
|
|
|
RUN: FileCheck %s --check-prefix=SAME --input-file=%s
|
|
SAME: {{^}}
|
|
SAME-SAME: some text
|
|
|
|
RUN: echo "" > %t
|
|
RUN: echo "" >> %t
|
|
RUN: FileCheck %s --check-prefix=EMPTY --input-file=%t
|
|
EMPTY: {{^}}
|
|
EMPTY-EMPTY:
|