Module Name: src Committed By: rillig Date: Sat Sep 24 10:52:05 UTC 2022
Modified Files: src/usr.bin/make/unit-tests: directive-for-break.mk Log Message: tests/make: add test for .if/.for/.if/.break To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/directive-for-break.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-break.mk diff -u src/usr.bin/make/unit-tests/directive-for-break.mk:1.2 src/usr.bin/make/unit-tests/directive-for-break.mk:1.3 --- src/usr.bin/make/unit-tests/directive-for-break.mk:1.2 Sat Sep 3 00:50:07 2022 +++ src/usr.bin/make/unit-tests/directive-for-break.mk Sat Sep 24 10:52:05 2022 @@ -1,4 +1,4 @@ -# $NetBSD: directive-for-break.mk,v 1.2 2022/09/03 00:50:07 rillig Exp $ +# $NetBSD: directive-for-break.mk,v 1.3 2022/09/24 10:52:05 rillig Exp $ # # Tests for .break in .for loops, which immediately terminates processing of # the surrounding .for loop. @@ -44,3 +44,17 @@ COMBINED+= ${outer}-${inner} # expect+1: break outside of for loop . break .endif + + +# Since cond.c 1.335 from 2022-09-02 and before cond.c 1.338 from 2022-09-23, +# the following paragraph generated the wrong error message '4294967294 open +# conditionals'. +.if 1 +. if 2 +. for var in value +. if 3 +. break +. endif +. endfor +. endif +.endif