Home | History | Annotate | Line # | Download | only in unit-tests
directive-endif.mk revision 1.3
      1 # $NetBSD: directive-endif.mk,v 1.3 2020/11/12 22:40:11 rillig Exp $
      2 #
      3 # Tests for the .endif directive.
      4 #
      5 # See also:
      6 #	Cond_EvalLine
      7 
      8 # TODO: Implementation
      9 
     10 .MAKEFLAGS: -dL
     11 
     12 # Error: .endif does not take arguments
     13 # XXX: Missing error message
     14 .if 0
     15 .endif 0
     16 
     17 # Error: .endif does not take arguments
     18 # XXX: Missing error message
     19 .if 1
     20 .endif 1
     21 
     22 # Comments are allowed after an '.endif'.
     23 .if 2
     24 .endif # comment
     25 
     26 all:
     27 	@:;
     28