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: unassignedb...@nondot.org
Reporter: rafael.espind...@gmail.com
CC: dan...@zuster.org, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs