xref: /freebsd/contrib/bmake/unit-tests/error.mk (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1# $NetBSD: error.mk,v 1.4 2023/06/01 20:56:35 rillig Exp $
2#
3# Demonstrate that the .error directive exits immediately, without
4# continuing parsing until the end of the file.
5
6# expect+1: just FYI
7.info just FYI
8# expect+1: warning: this could be serious
9.warning this could be serious
10# expect+1: this is fatal
11.error this is fatal
12.info this is not reached because of the .error above
13
14all:
15	: this is not reached because of the .error
16