aboutsummaryrefslogtreecommitdiff
path: root/common/query/basics/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/query/basics/test.hxx')
-rw-r--r--common/query/basics/test.hxx34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/query/basics/test.hxx b/common/query/basics/test.hxx
index 94f4a6e..3e61c57 100644
--- a/common/query/basics/test.hxx
+++ b/common/query/basics/test.hxx
@@ -81,4 +81,38 @@ operator<< (std::ostream& os, const person& p)
return os;
}
+// Test member name conflicts (compilation-only test).
+//
+#pragma db namespace table("t2_")
+namespace test2
+{
+ #pragma db object
+ struct object
+ {
+ #pragma db id
+ int id;
+ };
+
+ #pragma db value
+ struct value
+ {
+ object* m_object;
+ };
+
+ #pragma db value
+ struct bar
+ {
+ value m_value;
+ };
+
+ #pragma db object
+ struct foo
+ {
+ #pragma db id
+ int id;
+
+ bar m_value;
+ };
+}
+
#endif // TEST_HXX