aboutsummaryrefslogtreecommitdiff
path: root/common/readonly/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/readonly/test.hxx')
-rw-r--r--common/readonly/test.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/readonly/test.hxx b/common/readonly/test.hxx
index 04250fe..a29a2bd 100644
--- a/common/readonly/test.hxx
+++ b/common/readonly/test.hxx
@@ -132,6 +132,18 @@ struct container
// Readonly object.
//
+#pragma db object readonly
+struct simple_object
+{
+ simple_object (unsigned long i, unsigned long x): id (i), sv (x) {}
+ simple_object () {}
+
+ #pragma db id
+ unsigned long id;
+
+ unsigned long sv;
+};
+
#pragma db object
struct object
{