aboutsummaryrefslogtreecommitdiff
path: root/testcase
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-17 06:36:45 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-18 11:25:44 +0900
commitca66857f4e526179390b3a67e990538a4bbb2a16 (patch)
tree1533e7551f12b70f5b4e46fb8f10978a53166d0c /testcase
parent133bf671988ededdf6bf7926323e8a6cfa83624a (diff)
downloadkati-ca66857f4e526179390b3a67e990538a4bbb2a16.tar.gz
Fix handling of strings after define/endef
Diffstat (limited to 'testcase')
-rw-r--r--testcase/define_with_comments.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/testcase/define_with_comments.mk b/testcase/define_with_comments.mk
new file mode 100644
index 0000000..4d68cf6
--- /dev/null
+++ b/testcase/define_with_comments.mk
@@ -0,0 +1,26 @@
+define define_with_space
+PASS1
+endef
+define define_with_comment # foo
+PASS2
+endef
+define endef_with_comment
+PASS3
+endef # boo
+define endef_with_not_comment
+PASS4
+endef bar
+define endef_with_not_comment2
+PASS5
+endef baz
+define endef_with_not_endef
+endefPASS
+endef
+
+test:
+ echo $(define_with_space)
+ echo $(define_with_comment)
+ echo $(endef_with_comment)
+ echo $(endef_with_not_comment)
+ echo $(endef_with_not_comment2)
+ echo $(endef_with_not_endef)