diff options
Diffstat (limited to 'tools/regression/usr.bin/make/syntax/enl/Makefile')
-rw-r--r-- | tools/regression/usr.bin/make/syntax/enl/Makefile | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/tools/regression/usr.bin/make/syntax/enl/Makefile b/tools/regression/usr.bin/make/syntax/enl/Makefile index 7b37e78..a7c6955 100644 --- a/tools/regression/usr.bin/make/syntax/enl/Makefile +++ b/tools/regression/usr.bin/make/syntax/enl/Makefile @@ -14,12 +14,46 @@ test1: .elifmake test2 -# This should fail because the comment continues on the next lines leading -# to an unassociated shell command. -\ +# This should print ok because the second assignment to foo is actually +# a continued comment. +FOO=ok #\ \ +FOO=not ok test2: - @echo ok + @echo "${FOO}" + +.elifmake test3 + +# Make sure an escaped newline inserts a space +test3: a\ +b + +a: + @echo a + +b: + @echo b + +.elifmake test4 + +# Make sure an escaped newline inserts exactly one space +FOO=a\ + b + +test4: + @echo "${FOO}" + +.elifmake test5 + +# Make sure each escaped newline inserts exactly one space +FOO=a\ +\ +\ +\ +b +test5: + @echo "${FOO}" + .endif |