Home | History | Annotate | Line # | Download | only in unit-tests
directive-for-lines.mk revision 1.1
      1  1.1  rillig # $NetBSD: directive-for-lines.mk,v 1.1 2020/12/19 12:14:59 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.1  rillig # Since 2007-01-01 21:47:32 (git 4d3c468f96e1080e4d3cca8cc39067a73af14fbb),
      6  1.1  rillig # parse.c 1.127, the line numbers for the .info directives and error messages
      7  1.1  rillig # inside .for loops have been wrong since ParseGetLine skips empty lines, even
      8  1.1  rillig # 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