# $NetBSD: directive-for-null.mk,v 1.5 2025/03/30 09:51:50 rillig Exp $
#
# Test for parsing a .for loop that accidentally contains a null byte.
#
# expect: make: (stdin):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 -