summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/cond-op-and-lint.mk
blob: bac4566314b0a5bf38c85c2a529ca28282b2bfe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# $NetBSD: cond-op-and-lint.mk,v 1.2 2023/06/01 20:56:35 rillig Exp $
#
# Tests for the && operator in .if conditions, in lint mode.

.MAKEFLAGS: -dL

# The '&' operator is not allowed in lint mode.
# It is not used in practice anyway.
# expect+1: Unknown operator '&'
.if 0 & 0
.  error
.else
.  error
.endif