opnsense-src/unit-tests/opt-debug-for.exp
Simon J. Gerraty 3e39ce563b Import bmake-20230622
Relevant/interesting changes:

	o optimize string matching for ':M' and ':N'
	o warn about malformed patterns in ':M', ':N' and '.if make(...)'
	o allow guards to be targets as well as variables
	The guard targets may include variable references like
	__${.PARSEDIR:tA}/${.PARSEFILE}__
	o optimization for makefiles protected from multiple-inclusion
	skip even opening the file after first include.
	o var.c: do not allow delete of readOnly variable
	o parse.c: .break takes no args
2023-06-27 13:29:43 -07:00

22 lines
484 B
Text

For: new loop 2
For: end for 2
For: end for 1
For: loop body with outer = a:
. for inner in 1 2
VAR.${:Ua}${inner}= value
. endfor
For: end for 1
For: loop body with inner = 1:
VAR.${:Ua}${:U1}= value
For: loop body with inner = 2:
VAR.${:Ua}${:U2}= value
For: loop body with outer = b:
. for inner in 1 2
VAR.${:Ub}${inner}= value
. endfor
For: end for 1
For: loop body with inner = 1:
VAR.${:Ub}${:U1}= value
For: loop body with inner = 2:
VAR.${:Ub}${:U2}= value
exit status 0