diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-01-16 15:32:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-01-16 15:32:00 +0200 |
commit | 47751abc43dab40e0ac4a1523994fd533e6a3b22 (patch) | |
tree | bb61a346538ddb6945e8aff4c3919ce002c55a89 /tests/build/parser/driver.cxx | |
parent | c106259517d7693ea8e24564bc890fe575d5edcd (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.cxx | 6 |
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}")); |