xref: /freebsd/contrib/bmake/unit-tests/directive-error.mk (revision 3078531de10dcae44b253a35125c949ff4235284)
1# $NetBSD: directive-error.mk,v 1.5 2021/01/27 00:02:38 rillig Exp $
2#
3# Tests for the .error directive, which prints an error message and exits
4# immediately, unlike other "fatal" parse errors, which continue to parse
5# until the end of the current top-level makefile.
6#
7# See also:
8#	opt-warnings-as-errors.mk
9
10# Before parse.c 1.532 from 2021-01-27, the ".error" issued an irrelevant
11# message saying "parsing warnings being treated as errors".
12.MAKEFLAGS: -W
13.error message
14