diff options
Diffstat (limited to 'oracle/database/driver.cxx')
-rw-r--r-- | oracle/database/driver.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/oracle/database/driver.cxx b/oracle/database/driver.cxx deleted file mode 100644 index 499f136..0000000 --- a/oracle/database/driver.cxx +++ /dev/null @@ -1,33 +0,0 @@ -// file : oracle/database/driver.cxx -// license : GNU GPL v2; see accompanying LICENSE file - -// Test that database constructors are unambiguous (compilation only). -// - -#include <odb/oracle/database.hxx> - -namespace oracle = odb::oracle; -using namespace oracle; - -int -main (int argc, char* argv[]) -{ - // This code should not execute. - // - if (argc != 0) - return 0; - - { - database d1 ("bob", "secret", "db1"); - } - - { - database d1 ("bob", "secret", "svc1", "server1"); - database d2 ("bob", "secret", "svc1", "server1", 999); - } - - { - database d1 (argc, argv); - database d2 (argc, argv, false); - } -} |