summaryrefslogtreecommitdiff
path: root/xsd/tests/cxx/tree/enumeration/inheritance/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xsd/tests/cxx/tree/enumeration/inheritance/driver.cxx')
-rw-r--r--xsd/tests/cxx/tree/enumeration/inheritance/driver.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/xsd/tests/cxx/tree/enumeration/inheritance/driver.cxx b/xsd/tests/cxx/tree/enumeration/inheritance/driver.cxx
index 358f61d..0a6d5d2 100644
--- a/xsd/tests/cxx/tree/enumeration/inheritance/driver.cxx
+++ b/xsd/tests/cxx/tree/enumeration/inheritance/driver.cxx
@@ -1,12 +1,12 @@
// file : tests/cxx/tree/enumeration/inheritance/driver.cxx
-// author : Boris Kolpackov <boris@codesynthesis.com>
-// copyright : Copyright (c) 2006-2010 Code Synthesis Tools CC
+// copyright : Copyright (c) 2006-2014 Code Synthesis Tools CC
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
// Insert test description here.
//
-#include <memory> // std::auto_ptr
+#include <memory> // std::auto_ptr/unique_ptr
+#include <cassert>
#include <iostream>
#include "test.hxx"
@@ -25,7 +25,7 @@ main (int argc, char* argv[])
try
{
- auto_ptr<top_bottom> r (root (argv[1]));
+ XSD_AUTO_PTR<top_bottom> r (root (argv[1]));
switch (*r)
{
@@ -39,6 +39,11 @@ main (int argc, char* argv[])
cout << "bottom" << endl;
break;
}
+ default: // Suppress warning.
+ {
+ assert (false);
+ break;
+ }
}
}
catch (xml_schema::exception const& e)