aboutsummaryrefslogtreecommitdiff
path: root/tests/build/parser/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-01-16 15:32:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-01-16 15:32:00 +0200
commit47751abc43dab40e0ac4a1523994fd533e6a3b22 (patch)
treebb61a346538ddb6945e8aff4c3919ce002c55a89 /tests/build/parser/driver.cxx
parentc106259517d7693ea8e24564bc890fe575d5edcd (diff)
Add support for directory prefixes
For example: cxx{driver ../{foo bar}} cxx{driver} ../cxx{foo bar}
Diffstat (limited to 'tests/build/parser/driver.cxx')
-rw-r--r--tests/build/parser/driver.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/build/parser/driver.cxx b/tests/build/parser/driver.cxx
index a8c8fc9..8e4a60b 100644
--- a/tests/build/parser/driver.cxx
+++ b/tests/build/parser/driver.cxx
@@ -54,6 +54,12 @@ main ()
assert (!parse ("foo: bar:"));
assert (!parse ("exe{foo:"));
+ // Directory prefix.
+ //
+ assert (parse ("../{foo}: ../{bar}"));
+ assert (parse ("../exe{foo}: ../obj{bar}"));
+ assert (!parse ("../exe{exe{foo}}:"));
+
// Directory scope.
//
assert (parse ("test/:\n{\n}"));