1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/pymake/tests/comment-parsing.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +# where do comments take effect? 1.5 + 1.6 +VAR = val1 # comment 1.7 +VAR2 = lit2\#hash 1.8 +VAR2_1 = lit2.1\\\#hash 1.9 +VAR3 = val3 1.10 +VAR4 = lit4\\#backslash 1.11 +VAR4_1 = lit4\\\\#backslash 1.12 +VAR5 = lit5\char 1.13 +VAR6 = lit6\\char 1.14 +VAR7 = lit7\\ 1.15 +VAR8 = lit8\\\\ 1.16 +VAR9 = lit9\\\\extra 1.17 +# This comment extends to the next line \ 1.18 +VAR3 = ignored 1.19 + 1.20 +all: 1.21 + test "$(VAR)" = "val1 " 1.22 + test "$(VAR2)" = "lit2#hash" 1.23 + test '$(VAR2_1)' = 'lit2.1\#hash' 1.24 + test "$(VAR3)" = "val3" 1.25 + test '$(VAR4)' = 'lit4\' 1.26 + test '$(VAR4_1)' = 'lit4\\' 1.27 + test '$(VAR5)' = 'lit5\char' 1.28 + test '$(VAR6)' = 'lit6\\char' 1.29 + test '$(VAR7)' = 'lit7\\' 1.30 + test '$(VAR8)' = 'lit8\\\\' 1.31 + test '$(VAR9)' = 'lit9\\\\extra' 1.32 + @echo "TEST-PASS"