diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 19:57:18 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 19:57:18 +0300 |
commit | 5fb195c7fa0af6ecaa9d2d85a68e2de01ba30ff4 (patch) | |
tree | 835ef757eceb65bb6978096e8a5b86cd86a7b641 /libodb-boost/tests/basics/driver.cxx | |
parent | ec090a0330850adfa1b5df4bf1b064f9449678fd (diff) | |
parent | 52426a687a63e9cc900a08fe9a5e1584b3acf5d1 (diff) |
Merge branch 'libodb-boost' into multi-package
Diffstat (limited to 'libodb-boost/tests/basics/driver.cxx')
-rw-r--r-- | libodb-boost/tests/basics/driver.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libodb-boost/tests/basics/driver.cxx b/libodb-boost/tests/basics/driver.cxx new file mode 100644 index 0000000..a9c9c3d --- /dev/null +++ b/libodb-boost/tests/basics/driver.cxx @@ -0,0 +1,22 @@ +// file : tests/basics/driver.cxx +// license : GNU GPL v2; see accompanying LICENSE file + +// Basic test to make sure the library is usable. Functionality testing +// is done in the odb-tests package. + +#include <odb/boost/exception.hxx> +#include <odb/boost/date-time/exceptions.hxx> + +using namespace odb; + +int +main () +{ + try + { + throw boost::date_time::value_out_of_range (); + } + catch (const boost::exception&) + { + } +} |