Home | History | Annotate | Line # | Download | only in unit-tests
directive-for-lines.mk revision 1.2
      1  1.2  rillig # $NetBSD: directive-for-lines.mk,v 1.2 2020/12/19 12:24:46 rillig Exp $
      2  1.1  rillig #
      3  1.1  rillig # Tests for the line numbers that are reported in .for loops.
      4  1.1  rillig #
      5  1.2  rillig # Between 2007-01-01 (git 4d3c468f96e1080e, parse.c 1.127) and 2020-12-19
      6  1.2  rillig # (parse.c 1.494), the line numbers for the .info directives and error
      7  1.2  rillig # messages inside .for loops had been wrong since ParseGetLine skipped empty
      8  1.2  rillig # lines, even when collecting the lines for the .for loop body.
      9  1.1  rillig 
     10  1.1  rillig .for outer in a b
     11  1.1  rillig 
     12  1.1  rillig # comment
     13  1.1  rillig 
     14  1.1  rillig .for inner in 1 2
     15  1.1  rillig 
     16  1.1  rillig # comment
     17  1.1  rillig 
     18  1.1  rillig .info expect 18
     19  1.1  rillig 
     20  1.1  rillig .endfor
     21  1.1  rillig 
     22  1.1  rillig # comment
     23  1.1  rillig 
     24  1.1  rillig .info expect 24
     25  1.1  rillig 
     26  1.1  rillig .endfor
     27