]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/directive-undef.mk
Merge bmake-20201117
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / directive-undef.mk
1 # $NetBSD: directive-undef.mk,v 1.5 2020/11/03 17:17:31 rillig Exp $
2 #
3 # Tests for the .undef directive.
4
5 # As of 2020-07-28, .undef only undefines the first variable.
6 # All further variable names are silently ignored.
7 # See parse.c, string literal "undef".
8 1=              1
9 2=              2
10 3=              3
11 .undef 1 2 3
12 .if ${1:U_}${2:U_}${3:U_} != _23
13 .  warning $1$2$3
14 .endif
15
16 .unde                           # misspelled
17 .undef                          # oops: missing argument
18 .undefined                      # oops: misspelled
19
20 all:
21         @:;