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