Home | History | Annotate | Line # | Download | only in unit-tests
directive-endif.mk revision 1.6
      1  1.6  rillig # $NetBSD: directive-endif.mk,v 1.6 2023/06/01 07:27:30 rillig Exp $
      2  1.1  rillig #
      3  1.2  rillig # Tests for the .endif directive.
      4  1.3  rillig #
      5  1.5  rillig # Since 2020-12-15, the .endif directive no longer accepts arguments.
      6  1.5  rillig # The manual page had never allowed that, but the code didn't check it.
      7  1.5  rillig #
      8  1.3  rillig # See also:
      9  1.3  rillig #	Cond_EvalLine
     10  1.1  rillig 
     11  1.6  rillig # expect-all
     12  1.1  rillig 
     13  1.3  rillig .MAKEFLAGS: -dL
     14  1.3  rillig 
     15  1.3  rillig .if 0
     16  1.6  rillig # Since 2020-12-15:
     17  1.6  rillig # expect+1: The .endif directive does not take arguments
     18  1.3  rillig .endif 0
     19  1.3  rillig 
     20  1.3  rillig .if 1
     21  1.6  rillig # Since 2020-12-15:
     22  1.6  rillig # expect+1: The .endif directive does not take arguments
     23  1.3  rillig .endif 1
     24  1.3  rillig 
     25  1.3  rillig # Comments are allowed after an '.endif'.
     26  1.3  rillig .if 2
     27  1.3  rillig .endif # comment
     28  1.3  rillig 
     29  1.4  rillig # Only whitespace and comments are allowed after an '.endif', but nothing
     30  1.4  rillig # else.
     31  1.4  rillig .if 1
     32  1.6  rillig # Since 2020-12-15:
     33  1.6  rillig # expect+1: The .endif directive does not take arguments
     34  1.4  rillig .endif0
     35  1.4  rillig 
     36  1.4  rillig # Only whitespace and comments are allowed after an '.endif', but nothing
     37  1.4  rillig # else.
     38  1.4  rillig .if 1
     39  1.6  rillig # Since 2020-12-15:
     40  1.6  rillig # expect+1: The .endif directive does not take arguments
     41  1.4  rillig .endif/
     42  1.4  rillig 
     43  1.6  rillig # After an '.endif', no other letter must occur.
     44  1.4  rillig .if 1
     45  1.6  rillig # expect+1: Unknown directive "endifx"
     46  1.4  rillig .endifx
     47  1.6  rillig .endif				# to close the preceding '.if'
     48