summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-08-17 22:19:45 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-08-17 22:19:45 +0000
commit7682e85dc9edcc702ac11914a3e883c90f7db7b3 (patch)
tree99bfac1e70aa490fb8356f71f06e2ecfcafdec06 /regress
parent42ff0ab11058b614a449a10edb99646735ff1973 (diff)
ouch, this should not work
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/make/Makefile5
-rw-r--r--regress/usr.bin/make/mk3310
-rw-r--r--regress/usr.bin/make/t36.out1
3 files changed, 15 insertions, 1 deletions
diff --git a/regress/usr.bin/make/Makefile b/regress/usr.bin/make/Makefile
index 4cc37499a19..2117fb46b0e 100644
--- a/regress/usr.bin/make/Makefile
+++ b/regress/usr.bin/make/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.31 2011/06/30 14:24:51 espie Exp $
+# $OpenBSD: Makefile,v 1.32 2012/08/17 22:19:44 espie Exp $
# We don't pass t7, t13, t14, t17, t19, t20 t21 t26
# and t16 yields piss poor performance
@@ -147,6 +147,9 @@ t36:
z.a:
touch $@
+t37:
+ cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} B=2 ${MAKE} -r -f mk33 all | diff - t36.out
+
t1.out:
echo MACHINE_ARCH=${MACHINE_ARCH} >$@
diff --git a/regress/usr.bin/make/mk33 b/regress/usr.bin/make/mk33
new file mode 100644
index 00000000000..ef094109df1
--- /dev/null
+++ b/regress/usr.bin/make/mk33
@@ -0,0 +1,10 @@
+# $OpenBSD: mk33,v 1.1 2012/08/17 22:19:44 espie Exp $
+.PHONY: all
+
+AB = a
+AC = b
+B = C
+
+# note the non-terminated brace
+all:
+ @echo ${A${B}
diff --git a/regress/usr.bin/make/t36.out b/regress/usr.bin/make/t36.out
new file mode 100644
index 00000000000..8b137891791
--- /dev/null
+++ b/regress/usr.bin/make/t36.out
@@ -0,0 +1 @@
+