summaryrefslogtreecommitdiffstats
path: root/contrib/bmake/unit-tests/comment
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2012-10-03 00:41:46 +0000
committermarcel <marcel@FreeBSD.org>2012-10-03 00:41:46 +0000
commit22657893cf406906bc90adf4d67c26444ea9930f (patch)
tree44c94755fb4ba80c59b08896c9ba2bb09dddf5c8 /contrib/bmake/unit-tests/comment
parent5277f913de0e34474af844aed711a14c28c20d2b (diff)
parent7a30e7c5f81ddf34bba5a09b97fe6ba90544fd1b (diff)
downloadFreeBSD-src-22657893cf406906bc90adf4d67c26444ea9930f.zip
FreeBSD-src-22657893cf406906bc90adf4d67c26444ea9930f.tar.gz
Merge bmake-20120831 from vendor/NetBSD/bmake/dist.
Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg
Diffstat (limited to 'contrib/bmake/unit-tests/comment')
-rw-r--r--contrib/bmake/unit-tests/comment31
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/bmake/unit-tests/comment b/contrib/bmake/unit-tests/comment
new file mode 100644
index 0000000..7dd7dbb
--- /dev/null
+++ b/contrib/bmake/unit-tests/comment
@@ -0,0 +1,31 @@
+# This is a comment
+.if ${MACHINE_ARCH} == something
+FOO=bar
+.endif
+
+#\
+ Multiline comment
+
+BAR=# defined
+FOOBAR= # defined
+
+# This is an escaped comment \
+that keeps going until the end of this line
+
+# Another escaped comment \
+that \
+goes \
+on
+
+# This is NOT an escaped comment due to the double backslashes \\
+all: hi foo bar
+ @echo comment testing done
+
+hi:
+ @echo comment testing start
+
+foo:
+ @echo this is $@
+
+bar:
+ @echo This is how a comment looks: '# comment'
OpenPOWER on IntegriCloud