summaryrefslogtreecommitdiff
path: root/unit-tests/varparse-dynamic.mk
blob: 724cca3a5035f764662cd87430215adbb6a5d793 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# $NetBSD: varparse-dynamic.mk,v 1.1 2020/07/26 22:15:36 rillig Exp $

# Before 2020-07-27, there was an off-by-one error in Var_Parse that skipped
# the last character in the variable name.
# To trigger the bug, the variable must not be defined.
.if ${.TARGET}			# exact match, may be undefined
.endif
.if ${.TARGEX}			# 1 character difference, must be defined
.endif
.if ${.TARGXX}			# 2 characters difference, must be defined
.endif

all:
	@: