aboutsummaryrefslogblamecommitdiff
path: root/contrib/bmake/unit-tests/directive-for-null.mk
blob: d3de8b598bc2429135abb8a208b5b034a72ab3d7 (plain) (tree)
1
2
3
4
5
6
7
                                                                       


                                                                      
                                                          

           




                               
                      
# $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 -