VirtualBox

source: kBuild/trunk/src/kmk/testcase-assignments.kmk@ 3387

Last change on this file since 3387 was 3154, checked in by bird, 6 years ago

kmk_cc_exec: Some more work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 646 bytes
Line 
1# $Id: testcase-assignments.kmk 3154 2018-03-15 23:35:33Z bird $
2# Testcase for weird various assignment operators and parsing.
3
4
5
6SIMPLE1 := simple1
7ifneq ($(SIMPLE1),simple1)
8 $(error simple1 assignment no 1 failed: SIMPLE1=$(SIMPLE1))
9endif
10
11SIMPLE2 := simple2-$(SIMPLE1)
12ifneq ($(SIMPLE2),simple2-simple1)
13 $(error simple assignment no 2 failed: $(SIMPLE2))
14endif
15
16$(SIMPLE1)-3 := simple3-$(SIMPLE1)
17ifneq ($(simple1-3),simple3-simple1)
18 $(error simple assignment no 3 failed: $($(SIMPLE1)-3))
19endif
20
21$(subst 1,4,$(SIMPLE1)) := simple4
22ifneq ($(simple4),simple4)
23 $(error simple assignment no 4 failed: simple4=$(simple4)) # (Including an equal inside the error call here.)
24endif
25
26all:
27 @echo okay
28
29
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use