xref: /freebsd/contrib/bmake/unit-tests/directive-error.mk (revision d396c67f26b079c2808002c07212d9df9818a11b)
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