diff options
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/make.tests | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests index 745a840f3..1fc95a8d2 100755 --- a/testsuite/make.tests +++ b/testsuite/make.tests | |||
@@ -459,6 +459,15 @@ target: | |||
459 | : hash $(hash) hash | 459 | : hash $(hash) hash |
460 | ' | 460 | ' |
461 | 461 | ||
462 | # A '#' character can be escaped with a backslash | ||
463 | testing "make backslash-escaped hash isn't a comment" \ | ||
464 | "make -f -" \ | ||
465 | ": hash # hash\n" "" ' | ||
466 | hash = \# | ||
467 | target: | ||
468 | : hash $(hash) hash | ||
469 | ' | ||
470 | |||
462 | # A '#' character in a command line doesn't start a comment | 471 | # A '#' character in a command line doesn't start a comment |
463 | testing "make hash in command line isn't a comment" \ | 472 | testing "make hash in command line isn't a comment" \ |
464 | "make -f -" \ | 473 | "make -f -" \ |