1*148ee845SSimon J. Gerraty# $NetBSD: directive-error.mk,v 1.6 2023/06/01 20:56:35 rillig Exp $ 22c3632d1SSimon J. Gerraty# 306b9b3e0SSimon J. Gerraty# Tests for the .error directive, which prints an error message and exits 406b9b3e0SSimon J. Gerraty# immediately, unlike other "fatal" parse errors, which continue to parse 506b9b3e0SSimon J. Gerraty# until the end of the current top-level makefile. 6dba7b0efSSimon J. Gerraty# 7dba7b0efSSimon J. Gerraty# See also: 8dba7b0efSSimon J. Gerraty# opt-warnings-as-errors.mk 92c3632d1SSimon J. Gerraty 10dba7b0efSSimon J. Gerraty# Before parse.c 1.532 from 2021-01-27, the ".error" issued an irrelevant 11dba7b0efSSimon J. Gerraty# message saying "parsing warnings being treated as errors". 12dba7b0efSSimon J. Gerraty.MAKEFLAGS: -W 13*148ee845SSimon J. Gerraty# expect+1: message 14dba7b0efSSimon J. Gerraty.error message 15