aboutsummaryrefslogtreecommitdiff
path: root/common/composite/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/composite/test.hxx')
-rw-r--r--common/composite/test.hxx29
1 files changed, 29 insertions, 0 deletions
diff --git a/common/composite/test.hxx b/common/composite/test.hxx
index 8bf4b97..5dad274 100644
--- a/common/composite/test.hxx
+++ b/common/composite/test.hxx
@@ -219,4 +219,33 @@ namespace test4
}
}
+// Test composite name clashes in query columns (compilation test)
+//
+#pragma db namespace table("t5_")
+namespace test5
+{
+ // Class-member conflict.
+ //
+ #pragma db value
+ struct value {int value_;};
+
+ // Class-class conflict.
+ //
+ #pragma db value
+ struct inner {int value;};
+
+ #pragma db value
+ struct outer {inner value;};
+
+ #pragma db object
+ struct object
+ {
+ #pragma db id
+ int id;
+
+ outer value;
+ test5::value v;
+ };
+}
+
#endif // TEST_HXX