summaryrefslogtreecommitdiff
path: root/tests/scripts/variables/flavors
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/variables/flavors')
-rw-r--r--tests/scripts/variables/flavors17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/scripts/variables/flavors b/tests/scripts/variables/flavors
index 02dca0b..7c98afd 100644
--- a/tests/scripts/variables/flavors
+++ b/tests/scripts/variables/flavors
@@ -37,6 +37,16 @@ define
endef
endif
+define outer
+ define inner
+ A = B
+ endef
+endef
+
+$(eval $(outer))
+
+outer: ; @echo $(inner)
+
EOF
# END of Contents of MAKEFILE
@@ -64,5 +74,12 @@ $answer = "later foo bar\n";
$answer = "$makefile:23: *** empty variable name. Stop.\n";
&compare_output($answer, &get_logfile(1));
+# TEST #4
+# -------
+
+&run_make_with_options($makefile, "outer", &get_logfile);
+$answer = "A = B\n";
+&compare_output($answer, &get_logfile(1));
+
1;