xref: /src/contrib/bmake/unit-tests/opt-debug-hash.mk (revision 8d5c8e21c690b35d0a9a604d6b886fba222cd2fe)
1dbb5be7fSSimon J. Gerraty# $NetBSD: opt-debug-hash.mk,v 1.5 2024/05/31 07:13:12 rillig Exp $
2302da1a3SSimon J. Gerraty#
3302da1a3SSimon J. Gerraty# Tests for the -dh command line option, which adds debug logging for
4302da1a3SSimon J. Gerraty# hash tables.  Even more detailed logging is available by compiling
5302da1a3SSimon J. Gerraty# make with -DDEBUG_HASH_LOOKUP.
6302da1a3SSimon J. Gerraty
7cdde9e89SSimon J. Gerraty.MAKEFLAGS: -dh
8302da1a3SSimon J. Gerraty
9dbb5be7fSSimon J. Gerraty# Force a parse error, to demonstrate the newline character in the "cannot
10dbb5be7fSSimon J. Gerraty# continue" diagnostic that had been missing before parse.c 1.655 from
11dbb5be7fSSimon J. Gerraty# 2022-01-22.
123e39ce56SSimon J. Gerraty# expect+1: Missing argument for ".error"
13cdde9e89SSimon J. Gerraty.error
14