diff options
Diffstat (limited to 'tools/regression/usr.bin/make/variables/t0/test.t')
-rw-r--r-- | tools/regression/usr.bin/make/variables/t0/test.t | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tools/regression/usr.bin/make/variables/t0/test.t b/tools/regression/usr.bin/make/variables/t0/test.t new file mode 100644 index 0000000..7cbc35c --- /dev/null +++ b/tools/regression/usr.bin/make/variables/t0/test.t @@ -0,0 +1,38 @@ +#!/bin/sh + +# $FreeBSD$ + +cd `dirname $0` +. ../../common.sh + +setup_test() +{ + cat > ${WORK_DIR}/Makefile << "_EOF_" +A = 0 +AV = 1 +all: + echo $A + echo ${AV} + echo ${A} + # The following are soo broken why no syntax error? + echo $( + echo $) + echo ${ + echo ${A + echo ${A) + echo ${A){ + echo ${AV + echo ${AV) + echo ${AV){ + echo ${AV{ + echo ${A{ + echo $} +_EOF_ +} + +desc_test() +{ + echo "Variable expansion." +} + +eval_cmd $1 |