summaryrefslogtreecommitdiff
path: root/tests/scripts/features/conditionals
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/features/conditionals')
-rw-r--r--tests/scripts/features/conditionals11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/scripts/features/conditionals b/tests/scripts/features/conditionals
index 9aad1d1..36cba23 100644
--- a/tests/scripts/features/conditionals
+++ b/tests/scripts/features/conditionals
@@ -85,14 +85,21 @@ ifdef $(F)oo
DEF2 = yes
endif
-all:; @echo DEF=$(DEF) DEF2=$(DEF2)
+
+DEF3 = no
+FUNC = $1
+ifdef $(call FUNC,DEF)3
+ DEF3 = yes
+endif
+
+all:; @echo DEF=$(DEF) DEF2=$(DEF2) DEF3=$(DEF3)
EOF
close(MAKEFILE)
&run_make_with_options($makefile2,"",&get_logfile,0);
-$answer = "DEF=yes DEF2=yes\n";
+$answer = "DEF=yes DEF2=yes DEF3=yes\n";
&compare_output($answer,&get_logfile(1));