aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/cond-op-or-lint.mk
blob: aa29e9a6c2f2a55368de8c338dd8f300ab5c5c49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# $NetBSD: cond-op-or-lint.mk,v 1.1 2020/11/08 23:54:28 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.
.if 0 | 0
.  error
.else
.  error
.endif