VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/features/varnesting@ 3208

最後變更 在這個檔案從3208是 3138,由 bird 提交於 7 年 前

Imported make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6) from https://git.savannah.gnu.org/git/make.git.

  • 屬性 svn:eol-style 設為 LF
檔案大小: 629 位元組
 
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
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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