summaryrefslogtreecommitdiff
path: root/unit-tests/directive-endif.mk
blob: b0b531af2f06f647fa1eb8ff3c6fc0ee78d04858 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $NetBSD: directive-endif.mk,v 1.3 2020/11/12 22:40:11 rillig Exp $
#
# Tests for the .endif directive.
#
# See also:
#	Cond_EvalLine

# TODO: Implementation

.MAKEFLAGS: -dL

# Error: .endif does not take arguments
# XXX: Missing error message
.if 0
.endif 0

# Error: .endif does not take arguments
# XXX: Missing error message
.if 1
.endif 1

# Comments are allowed after an '.endif'.
.if 2
.endif # comment

all:
	@:;