aboutsummaryrefslogtreecommitdiff
path: root/tests/variable
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-30 12:00:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-30 12:00:49 +0200
commitdee70af1d3b6ca4caf1027b79eb471b28624fff8 (patch)
tree97c72ca8b9234abac491e16c8f73165f305f454e /tests/variable
parentec01212ebb80a21e34237176b5fde6063b36a415 (diff)
Add support for using '*' as target type in variable assignment
So these three are equivalent: *: foo = 1 {*}: foo = 2 *{*}: foo = 3
Diffstat (limited to 'tests/variable')
-rw-r--r--tests/variable/type-pattern/buildfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/variable/type-pattern/buildfile b/tests/variable/type-pattern/buildfile
index 8c353a5..dd218ac 100644
--- a/tests/variable/type-pattern/buildfile
+++ b/tests/variable/type-pattern/buildfile
@@ -30,4 +30,10 @@ file{fox-x-fox}: x = $x # still '2'!
*-foz: x = z # any target
file{x-foz}: x = $x # 'z'
+# These should all be the same.
+#
+*: x1 = X1
+{*}: x2 = X2
+*{*}: x3 = X3
+
./: