llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

FileCheck ignores `-Y` in `[[X-Y]]`

Open jdenny-ornl opened this issue 5 years ago • 3 comments

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.

jdenny-ornl avatar Mar 11 '21 01:03 jdenny-ornl

Fixed in 058455ffbec13bd1bc468a0206b9e3a95dc4b8c8

RoboTux avatar Mar 24 '21 18:03 RoboTux

Review at https://reviews.llvm.org/D98691

RoboTux avatar Mar 16 '21 10:03 RoboTux

assigned to @RoboTux

jdenny-ornl avatar Mar 11 '21 01:03 jdenny-ornl