[llvm-bugs] [Bug 36492] New: FileCheck cannot match a particular regex combination
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 23 11:48:27 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36492
Bug ID: 36492
Summary: FileCheck cannot match a particular regex combination
Product: Test Suite
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: lit
Assignee: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: daniel at zuster.org, llvm-bugs at lists.llvm.org
Given
$ cat foo
foo foo foo
foo
foo foo
foo foo foo
foo foo foo
foo foo foo
foo foo foo
$ cat check
CHECK: foo foo foo
CHECK: foo [[ABC:foo]] foo
CHECK: foo [[ABC:foo]] [[ABC]]
CHECK: {{.*}} [[ABC:foo]] [[ABC]]
CHECK: {{(foo)}} [[ABC:foo]] [[ABC]]
CHECK: {{(foo)?}} [[ABC:foo]] [[ABC]]
Only the last line fails to match:
$ FileCheck check < foo
check:6:8: error: expected string not found in input
CHECK: {{(foo)?}} [[ABC:foo]] [[ABC]]
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180223/1441d936/attachment.html>
More information about the llvm-bugs
mailing list