1# $NetBSD: directive-warning.mk,v 1.9 2023/12/17 09:44:00 rillig Exp $
2#
3# Tests for the .warning directive.
4#
5# Until parse.c 1.502 from 2020-12-19, a missing argument to the directive
6# produced the wrong error message "Unknown directive".  Since parse.c 1.503
7# from 2020-12-19, the correct "Missing argument" is produced.
8
9# expect+1: Unknown directive "warn"
10.warn				# misspelled
11# expect+1: Unknown directive "warn"
12.warn message			# misspelled
13# expect+1: Unknown directive "warnin"
14.warnin				# misspelled
15# expect+1: Unknown directive "warnin"
16.warnin	message			# misspelled
17# expect+1: Missing argument for ".warning"
18.warning			# "Missing argument"
19.warning message		# expect+0: warning: message
20# expect+1: Unknown directive "warnings"
21.warnings			# misspelled
22# expect+1: Unknown directive "warnings"
23.warnings messages		# Accepted before 2020-12-13 01:07:54.
24
25all: .PHONY
26