[docs][FileCheck] Fix invalid example

Summary:
FileCheck documentation contains an example of a numeric variable
defined and used on the same line. This is not currently supported by
FileCheck so this commit fixes the example to use CHECK-SAME for the
variable use.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D79253
This commit is contained in:
Thomas Preud'homme 2020-05-01 19:25:08 +01:00
parent 6d103ca855
commit 0b85ea8533
1 changed files with 2 additions and 1 deletions

View File

@ -634,7 +634,8 @@ For example:
; CHECK: load r[[#REG:]], [r0] ; CHECK: load r[[#REG:]], [r0]
; CHECK: load r[[#REG+1]], [r1] ; CHECK: load r[[#REG+1]], [r1]
; CHECK: Loading from 0x[[#%x,ADDR:] to 0x[[#ADDR + 7]] ; CHECK: Loading from 0x[[#%x,ADDR:]]
; CHECK-SAME: to 0x[[#ADDR + 7]]
The above example would match the text: The above example would match the text: