aboutsummaryrefslogtreecommitdiff
path: root/tests/variable/representation/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/variable/representation/buildfile')
-rw-r--r--tests/variable/representation/buildfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/variable/representation/buildfile b/tests/variable/representation/buildfile
new file mode 100644
index 0000000..22913d5
--- /dev/null
+++ b/tests/variable/representation/buildfile
@@ -0,0 +1,18 @@
+# Test reversibility of variable representation.
+#
+val = -L/
+val += -L/foo/
+#val += dir{-L/}
+
+val += foo%bar
+val += foo%
+val += %bar
+val += foo%{bar}
+#val += foo%file{x}
+
+using cxx
+cxx.ext = cxx
+
+exe{driver}: cxx{driver}
+exe{driver}: test.output = test.out
+exe{driver}: test.options = $val