Home | History | Annotate | Line # | Download | only in unit-tests
cond-op-not.mk revision 1.3
      1  1.3  rillig # $NetBSD: cond-op-not.mk,v 1.3 2020/08/28 14:48:37 rillig Exp $
      2  1.1  rillig #
      3  1.2  rillig # Tests for the ! operator in .if conditions.
      4  1.1  rillig 
      5  1.3  rillig # The exclamation mark negates its operand.
      6  1.3  rillig .if !1
      7  1.3  rillig .error
      8  1.3  rillig .endif
      9  1.3  rillig 
     10  1.3  rillig # Exclamation marks can be chained.
     11  1.3  rillig # This doesn't happen in practice though.
     12  1.3  rillig .if !!!1
     13  1.3  rillig .error
     14  1.3  rillig .endif
     15  1.3  rillig 
     16  1.3  rillig # The ! binds more tightly than the &&.
     17  1.3  rillig .if !!0 && 1
     18  1.3  rillig .error
     19  1.3  rillig .endif
     20  1.1  rillig 
     21  1.1  rillig all:
     22  1.1  rillig 	@:;
     23