summaryrefslogtreecommitdiff
path: root/unit-tests/directive-ifdef.mk
blob: 516e095c464f786be17854451a9ca5c174c0625f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# $NetBSD: directive-ifdef.mk,v 1.3 2020/11/08 22:38:28 rillig Exp $
#
# Tests for the .ifdef directive.

# TODO: Implementation

DEFINED=	defined

# It looks redundant to have a call to defined() in an .ifdef, but it's
# possible.  The .ifdef only affects plain symbols, not function calls.
.ifdef defined(DEFINED)
.  info Function calls in .ifdef are possible.
.else
.  error
.endif

all:
	@:;