summaryrefslogtreecommitdiff
path: root/common/const-object/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/const-object/test.hxx')
-rw-r--r--common/const-object/test.hxx51
1 files changed, 0 insertions, 51 deletions
diff --git a/common/const-object/test.hxx b/common/const-object/test.hxx
deleted file mode 100644
index 4e66231..0000000
--- a/common/const-object/test.hxx
+++ /dev/null
@@ -1,51 +0,0 @@
-// file : common/const-object/test.hxx
-// license : GNU GPL v2; see accompanying LICENSE file
-
-#ifndef TEST_HXX
-#define TEST_HXX
-
-#include <memory>
-#include <odb/core.hxx>
-
-#pragma db object pointer (obj1*) session
-struct obj1
-{
- obj1 () {}
- obj1 (int i): id (i) {}
-
- #pragma db id
- int id;
-
- void f () {}
- void cf () const {}
-};
-
-#pragma db object pointer (std::unique_ptr<obj2>)
-struct obj2
-{
- obj2 () {}
- obj2 (int i): id (i) {}
-
- #pragma db id
- int id;
-
- void f () {}
- void cf () const {}
-};
-
-#pragma db object
-struct aggr
-{
- aggr (int i): id (i), o1 (0) {}
- aggr (): o1 (0) {}
- ~aggr () {delete o1;}
-
- #pragma db id
- int id;
-
- const obj1* o1;
-
- std::unique_ptr<const obj2> o2;
-};
-
-#endif // TEST_HXX