1*548bfc56SSimon J. Gerraty# $NetBSD: directive-for-null.mk,v 1.4 2024/04/01 12:26:02 rillig Exp $
206b9b3e0SSimon J. Gerraty#
306b9b3e0SSimon J. Gerraty# Test for parsing a .for loop that accidentally contains a null byte.
406b9b3e0SSimon J. Gerraty#
5*548bfc56SSimon J. Gerraty# expect: make: "(stdin)" line 2: Zero byte read from file
606b9b3e0SSimon J. Gerraty
706b9b3e0SSimon J. Gerratyall: .PHONY
8954401e6SSimon J. Gerraty	@printf '%s\n' \
9954401e6SSimon J. Gerraty	    '.for i in 1 2 3' \
10954401e6SSimon J. Gerraty	    'VAR=value' \
11954401e6SSimon J. Gerraty	    '.endfor' \
12954401e6SSimon J. Gerraty	| tr 'l' '\0' \
1306b9b3e0SSimon J. Gerraty	| ${MAKE} -f -
14