https://bugs.llvm.org/show_bug.cgi?id=48089
Bug ID: 48089
Summary: FileCheck with multiple check prefixes prints the
wrong prefix for failing -dag checks
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: h...@chromium.org
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org
For example:
$ cat /tmp/x
BAR-DAG: world
FOO-DAG: Hello
$ echo Hello world | bin/FileCheck --check-prefix=FOO --check-prefix=BAR /tmp/x
(all good)
$ echo Hello LLVM | bin/FileCheck --check-prefix=FOO --check-prefix=BAR /tmp/x
/tmp/x:1:10: error: FOO-DAG: expected string not found in input
BAR-DAG: world
^
<stdin>:1:1: note: scanning from here
Hello LLVM
^
Input file: <stdin>
Check file: /tmp/x
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: Hello LLVM
dag:1 X~~~~~~~~~ error: no match found
>>>>>>
Note that the error says "FOO-DAG: expected string not found in input" even
though it's really BAR-DAG that's failing.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs