Home | History | Annotate | Line # | Download | only in unit-tests
directive-undef.mk revision 1.5
      1  1.5  rillig # $NetBSD: directive-undef.mk,v 1.5 2020/11/03 17:17:31 rillig Exp $
      2  1.1  rillig #
      3  1.2  rillig # Tests for the .undef directive.
      4  1.1  rillig 
      5  1.3  rillig # As of 2020-07-28, .undef only undefines the first variable.
      6  1.3  rillig # All further variable names are silently ignored.
      7  1.3  rillig # See parse.c, string literal "undef".
      8  1.3  rillig 1=		1
      9  1.3  rillig 2=		2
     10  1.3  rillig 3=		3
     11  1.3  rillig .undef 1 2 3
     12  1.3  rillig .if ${1:U_}${2:U_}${3:U_} != _23
     13  1.4  rillig .  warning $1$2$3
     14  1.3  rillig .endif
     15  1.1  rillig 
     16  1.5  rillig .unde				# misspelled
     17  1.5  rillig .undef				# oops: missing argument
     18  1.5  rillig .undefined			# oops: misspelled
     19  1.5  rillig 
     20  1.1  rillig all:
     21  1.1  rillig 	@:;
     22