summaryrefslogtreecommitdiffstats
path: root/build/pymake/tests/eval-duringexecute.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build/pymake/tests/eval-duringexecute.mk')
-rw-r--r--build/pymake/tests/eval-duringexecute.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/pymake/tests/eval-duringexecute.mk b/build/pymake/tests/eval-duringexecute.mk
new file mode 100644
index 000000000..dff848032
--- /dev/null
+++ b/build/pymake/tests/eval-duringexecute.mk
@@ -0,0 +1,12 @@
+#T returncode: 2
+
+# Once parsing is finished, recursive expansion in commands are not allowed to create any new rules (it may only set variables)
+
+define MORERULE
+all:
+ @echo TEST-FAIL
+endef
+
+all:
+ $(eval $(MORERULE))
+ @echo done