xref: /freebsd/contrib/bmake/unit-tests/cond-op-and-lint.mk (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1# $NetBSD: cond-op-and-lint.mk,v 1.2 2023/06/01 20:56:35 rillig Exp $
2#
3# Tests for the && operator in .if conditions, in lint mode.
4
5.MAKEFLAGS: -dL
6
7# The '&' operator is not allowed in lint mode.
8# It is not used in practice anyway.
9# expect+1: Unknown operator '&'
10.if 0 & 0
11.  error
12.else
13.  error
14.endif
15