summaryrefslogtreecommitdiff
path: root/tests/glibmm_value/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/glibmm_value/main.cc')
-rw-r--r--tests/glibmm_value/main.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/glibmm_value/main.cc b/tests/glibmm_value/main.cc
index a824f948..4aea37cc 100644
--- a/tests/glibmm_value/main.cc
+++ b/tests/glibmm_value/main.cc
@@ -28,6 +28,13 @@ test()
const auto v = value.get();
assert(v.bar == 1);
+
+ // Make a copy
+ Glib::Value<Foo> value2;
+ value2.init(Glib::Value<Foo>::value_type()); // TODO: Avoid this step?
+ value2 = value;
+ const auto v2 = value2.get();
+ assert(v2.bar == 1);
}
{