chiark / gitweb /
Syntax: expand &$... to ${....} rather than $(....)
[subdirmk.git] / tests / filter / Dir.sd.mk
index 559a40c9787f107b7f992298e3618351c9a8aaa0..c97ee0f956260fbb347da9404e9837c81028c412 100644 (file)
@@ -1,6 +1,22 @@
 # test cases for generate script
 
+# some blank/comment lines to make "saw WARN" come out with 1-
+# and 2-digit line numbers
+
+WARN += 3
+&WARN += 3
+# $WARN
+# $(WARN)
+# $(&WARN)
+# &$WARN
+
+&:local+global NOWARN1 &NOWARN2
+# &$NOWARN1 $(NOWARN1)
+# &$NOWARN2 $(NOWARN2)
+
 &${ some-macro, 42, $x, { &$- $(foreach something) } }
 
+$&FBAR
+
 # doctests:
 &:include &doctests.sd.mk