diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-30 10:19:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-30 10:19:30 +0200 |
commit | cc5cdb07e40f30e614bd15d81a5091faf717f4f4 (patch) | |
tree | b717b3216c1730db484e7ebfb6dbe1281621ede9 /tests/cxx/tree/polymorphism/comparison/driver.cxx | |
parent | 94cba986108a0e0f42295572ca42c356d59328d7 (diff) |
Add support for abstract complex types in C++/Tree
Diffstat (limited to 'tests/cxx/tree/polymorphism/comparison/driver.cxx')
-rw-r--r-- | tests/cxx/tree/polymorphism/comparison/driver.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cxx/tree/polymorphism/comparison/driver.cxx b/tests/cxx/tree/polymorphism/comparison/driver.cxx index 5394991..d291f6c 100644 --- a/tests/cxx/tree/polymorphism/comparison/driver.cxx +++ b/tests/cxx/tree/polymorphism/comparison/driver.cxx @@ -6,6 +6,7 @@ // #include <memory> // std::auto_ptr/unique_ptr +#include <sstream> #include <iostream> #include "test.hxx" @@ -65,6 +66,17 @@ main (int argc, char* argv[]) assert (*r != r1); } + + xml_schema::namespace_infomap map; + + map["t"].name = "test"; + + stringstream s; + root (s, *r, map); + + XSD_AUTO_PTR<type> c (root (s, xml_schema::flags::dont_validate)); + + assert (*r == *c); } catch (xml_schema::exception const& e) { |