diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
commit | 29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc (patch) | |
tree | 63ef546b10a81d461e5cf5ed9e98a68cd7dee1aa /src/kmk/testcase-assignments.kmk | |
parent | Initial commit. (diff) | |
download | kbuild-29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc.tar.xz kbuild-29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc.zip |
Adding upstream version 1:0.1.9998svn3589+dfsg.upstream/1%0.1.9998svn3589+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/kmk/testcase-assignments.kmk')
-rw-r--r-- | src/kmk/testcase-assignments.kmk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/kmk/testcase-assignments.kmk b/src/kmk/testcase-assignments.kmk new file mode 100644 index 0000000..1ef2431 --- /dev/null +++ b/src/kmk/testcase-assignments.kmk @@ -0,0 +1,29 @@ +# $Id: testcase-assignments.kmk 3154 2018-03-15 23:35:33Z bird $ +# Testcase for weird various assignment operators and parsing. + + + +SIMPLE1 := simple1 +ifneq ($(SIMPLE1),simple1) + $(error simple1 assignment no 1 failed: SIMPLE1=$(SIMPLE1)) +endif + +SIMPLE2 := simple2-$(SIMPLE1) +ifneq ($(SIMPLE2),simple2-simple1) + $(error simple assignment no 2 failed: $(SIMPLE2)) +endif + +$(SIMPLE1)-3 := simple3-$(SIMPLE1) +ifneq ($(simple1-3),simple3-simple1) + $(error simple assignment no 3 failed: $($(SIMPLE1)-3)) +endif + +$(subst 1,4,$(SIMPLE1)) := simple4 +ifneq ($(simple4),simple4) + $(error simple assignment no 4 failed: simple4=$(simple4)) # (Including an equal inside the error call here.) +endif + +all: + @echo okay + + |