]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/cond-op-or.mk
Update to bmake-20200902
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / cond-op-or.mk
1 # $NetBSD: cond-op-or.mk,v 1.3 2020/08/28 14:48:37 rillig Exp $
2 #
3 # Tests for the || operator in .if conditions.
4
5 .if 0 || 0
6 .error
7 .endif
8
9 .if !(1 || 0)
10 .error
11 .endif
12
13 .if !(0 || 1)
14 .error
15 .endif
16
17 .if !(1 || 1)
18 .error
19 .endif
20
21 # The right-hand side is not evaluated since the left-hand side is already
22 # true.
23 .if 1 || ${UNDEF}
24 .endif
25
26 all:
27         @:;