[PATCH] D77607: [FileCheck] Fix --dump-input annotation sort per input line

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 09:45:13 PDT 2020


thopre added inline comments.


================
Comment at: llvm/test/FileCheck/dump-input-annotations.txt:586-599
 ;         IMPNOT:<<<<<<
 ;    IMPNOT-NEXT:          1: hello world again!
 ;  IMPNOT-V-NEXT:check:1      ^~~
 ; IMPNOT-VV-NEXT:not:imp1     X
 ; IMPNOT-VV-NEXT:not:imp2     X
 ; IMPNOT-VV-NEXT:not:imp3     X
+;  IMPNOT-V-NEXT:check:2            ^~~
----------------
With 3 CHECK directives, I would expect 4 blocks of implicit checks being tested:

  #   - before directive 1
  #   - between directive 1 and directive 2
  #   - between directive 2 and directive 3
  #   - after directive 3

Unless I misunderstood, I would expect directive #3 to fail, i.e. "again" is found between "wor" and '!'. However the implicit check that fail is shown after the third CHECK directive.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77607/new/

https://reviews.llvm.org/D77607





More information about the llvm-commits mailing list