diff options
Diffstat (limited to 'testsuite/make.tests')
-rwxr-xr-x | testsuite/make.tests | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests index 70c1231b9..8a0f1a7d2 100755 --- a/testsuite/make.tests +++ b/testsuite/make.tests | |||
@@ -339,6 +339,19 @@ target: | |||
339 | b} | 339 | b} |
340 | ' | 340 | ' |
341 | 341 | ||
342 | # POSIX 202X permits additional characters in macro and target names | ||
343 | testing "make allow - and / in target names, - in macro names" \ | ||
344 | "make -f -" \ | ||
345 | "/hello\nhel-lo\nmac-ro\n" "" ' | ||
346 | target: ./hello hel-lo | ||
347 | @echo $(mac-ro) | ||
348 | ./hello: | ||
349 | @echo /hello | ||
350 | hel-lo: | ||
351 | @echo hel-lo | ||
352 | mac-ro = mac-ro | ||
353 | ' | ||
354 | |||
342 | testing "make double-colon rule" \ | 355 | testing "make double-colon rule" \ |
343 | "make -f -" "target1\ntarget2\n" "" ' | 356 | "make -f -" "target1\ntarget2\n" "" ' |
344 | target:: | 357 | target:: |