freebsd-src/contrib/bmake/unit-tests/directive-for-null.mk
Simon J. Gerraty 548bfc56eb Merge bmake-20240430
Merge commit '507951f55039f9d1ceae507d510f8cb68225fbc5'
2024-05-03 15:48:32 -07:00

14 lines
331 B
Makefile

# $NetBSD: directive-for-null.mk,v 1.4 2024/04/01 12:26:02 rillig Exp $
#
# Test for parsing a .for loop that accidentally contains a null byte.
#
# expect: make: "(stdin)" line 2: Zero byte read from file
all: .PHONY
@printf '%s\n' \
'.for i in 1 2 3' \
'VAR=value' \
'.endfor' \
| tr 'l' '\0' \
| ${MAKE} -f -