Module Name:    src
Committed By:   rillig
Date:           Sat Jun  1 11:24:11 UTC 2024

Modified Files:
        src/usr.bin/make/unit-tests: directive-for-errors.mk

Log Message:
tests/make: test invalid character in a late .for variable name

This covers the cleanup code that frees the earlier variable names when
a late variable name is invalid.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
    src/usr.bin/make/unit-tests/directive-for-errors.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/directive-for-errors.mk
diff -u src/usr.bin/make/unit-tests/directive-for-errors.mk:1.10 src/usr.bin/make/unit-tests/directive-for-errors.mk:1.11
--- src/usr.bin/make/unit-tests/directive-for-errors.mk:1.10	Sat Apr 20 10:18:55 2024
+++ src/usr.bin/make/unit-tests/directive-for-errors.mk	Sat Jun  1 11:24:11 2024
@@ -1,4 +1,4 @@
-# $NetBSD: directive-for-errors.mk,v 1.10 2024/04/20 10:18:55 rillig Exp $
+# $NetBSD: directive-for-errors.mk,v 1.11 2024/06/01 11:24:11 rillig Exp $
 #
 # Tests for error handling in .for loops.
 
@@ -41,7 +41,7 @@
 ${:U\$}=	dollar		# see whether the "variable" '$' is local
 ${:U\\}=	backslash	# see whether the "variable" '\' is local
 # expect+1: invalid character '$' in .for loop variable name
-.for $ \ in 1 2 3 4
+.for a b $ \ in 1 2 3 4
 .  info Dollar $$ ${$} $($) and backslash $\ ${\} $(\).
 .endfor
 

Reply via email to