aboutsummaryrefslogtreecommitdiff
path: root/common/no-id/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/no-id/test.hxx')
-rw-r--r--common/no-id/test.hxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/common/no-id/test.hxx b/common/no-id/test.hxx
new file mode 100644
index 0000000..3508d88
--- /dev/null
+++ b/common/no-id/test.hxx
@@ -0,0 +1,23 @@
+// file : common/no-id/test.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef TEST_HXX
+#define TEST_HXX
+
+#include <string>
+
+#include <odb/core.hxx>
+
+#pragma db object id()
+struct object
+{
+ object () {}
+ object (unsigned long n, const std::string& s): num (n), str (s) {}
+
+ unsigned long num;
+ std::string str;
+};
+
+#endif // TEST_HXX