2022-07-26 15:52:53 +00:00
|
|
|
# $NetBSD: directive-info.mk,v 1.10 2022/05/08 06:51:27 rillig Exp $
|
2020-09-05 16:11:04 +00:00
|
|
|
#
|
|
|
|
# Tests for the .info directive.
|
2021-01-14 01:24:34 +00:00
|
|
|
#
|
|
|
|
# Until parse.c 1.502 from 2020-12-19, a missing argument to the directive
|
|
|
|
# produced the wrong error message "Unknown directive". Since parse.c 1.503
|
|
|
|
# from 2020-12-19, the correct "Missing argument" is produced.
|
2020-09-05 16:11:04 +00:00
|
|
|
|
|
|
|
# TODO: Implementation
|
|
|
|
|
2020-11-20 03:54:37 +00:00
|
|
|
.info begin .info tests
|
|
|
|
.inf # misspelled
|
2021-01-14 01:24:34 +00:00
|
|
|
.info # "Missing argument"
|
2020-11-20 03:54:37 +00:00
|
|
|
.info message
|
|
|
|
.info indented message
|
|
|
|
.information
|
2021-01-14 01:24:34 +00:00
|
|
|
.information message # Accepted before 2020-12-13 01:07:54.
|
2020-11-20 03:54:37 +00:00
|
|
|
.info.man: # not a message, but possibly a suffix rule
|
|
|
|
|
|
|
|
# Even if lines would have trailing whitespace, this would be trimmed by
|
2022-07-26 15:52:53 +00:00
|
|
|
# ParseRawLine.
|
2020-11-20 03:54:37 +00:00
|
|
|
.info
|
|
|
|
.info # comment
|
|
|
|
|
|
|
|
.info: message # This is a dependency declaration.
|
|
|
|
.info-message # This is an unknown directive.
|
|
|
|
.info no-target: no-source # This is a .info directive, not a dependency.
|
|
|
|
# See directive.mk for more tests of this kind.
|
|
|
|
|
2022-02-05 20:03:50 +00:00
|
|
|
# Since at least 2002-01-01 and before parse.c 1.639 from 2022-01-08, the line
|
|
|
|
# number that is used in error messages and the .info directives was the
|
|
|
|
# number of completely read lines. For the following multi-line directive,
|
|
|
|
# this meant that the reported line number was the one of the last line, not
|
|
|
|
# of the first line.
|
|
|
|
.info expect line 35 for\
|
2021-01-14 01:24:34 +00:00
|
|
|
multi$\
|
|
|
|
-line message
|
|
|
|
|
2020-09-05 16:11:04 +00:00
|
|
|
all:
|
|
|
|
@:;
|