llvm-project
llvm-project copied to clipboard
FileCheck ignores `-Y` in `[[X-Y]]`
| Bugzilla Link | 49531 |
| Resolution | FIXED |
| Resolved on | Mar 24, 2021 11:56 |
| Version | trunk |
| OS | Linux |
| CC | @RoboTux |
Extended Description
For example:
$ cat check
CHECK: [[X-Y]]
$ FileCheck -vv -dump-input=always -DX=5 -DY=6 check < input |& tail -5
<<<<<<
1: 5
check:1'0 ^
check:1'1 with "X" equal to "5"
>>>>>>
I would expect a directive parse error instead.
Fixed in 058455ffbec13bd1bc468a0206b9e3a95dc4b8c8
Review at https://reviews.llvm.org/D98691
assigned to @RoboTux