make(1): add test for .export-literal

This commit is contained in:
rillig 2020-10-03 09:37:04 +00:00
parent 2090dc1c6a
commit 5729ade48e
2 changed files with 8 additions and 4 deletions

View File

@ -1 +1,2 @@
value with ${UNEXPANDED} expression
exit status 0

View File

@ -1,8 +1,11 @@
# $NetBSD: directive-export-literal.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
# $NetBSD: directive-export-literal.mk,v 1.3 2020/10/03 09:37:04 rillig Exp $
#
# Tests for the .export-literal directive.
# Tests for the .export-literal directive, which exports a variable value
# without expanding it.
# TODO: Implementation
UT_VAR= value with ${UNEXPANDED} expression
.export-literal UT_VAR
all:
@:;
@echo "$$UT_VAR"