From 7682e85dc9edcc702ac11914a3e883c90f7db7b3 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Fri, 17 Aug 2012 22:19:45 +0000 Subject: ouch, this should not work --- regress/usr.bin/make/Makefile | 5 ++++- regress/usr.bin/make/mk33 | 10 ++++++++++ regress/usr.bin/make/t36.out | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 regress/usr.bin/make/mk33 create mode 100644 regress/usr.bin/make/t36.out 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 @@ + -- cgit v1.2.3