VirtualBox

source: kBuild/trunk/src/kmk/tests/scripts/features/varnesting@ 3140

Last change on this file since 3140 was 3140, checked in by bird, 7 years ago

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

  • Property svn:eol-style set to LF
File size: 629 bytes
Line 
1# -*-perl-*-
2$description = "Test recursive variables";
3
4$details = "";
5
6run_make_test('
7x = variable1
8variable2 := Hello
9y = $(subst 1,2,$(x))
10z = y
11a := $($($(z)))
12all:
13 @echo $(a)
14',
15 '', "Hello\n");
16
17# This tests resetting the value of a variable while expanding it.
18# You may only see problems with this if you're using valgrind or
19# some other memory checker that poisons freed memory.
20# See Savannah patch #7534
21
22run_make_test('
23VARIABLE = $(eval VARIABLE := echo hi)$(VARIABLE)
24wololo:
25 @$(VARIABLE)
26',
27 '', "hi\n");
28
291;
30
31
32
33
34
35
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette