Add a test for unwrapping member<T>.
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 12 Oct 2016 01:41:16 +0000 (21:41 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 12 Oct 2016 01:41:16 +0000 (21:41 -0400)
test.cc

diff --git a/test.cc b/test.cc
index 0e46e94..d28d591 100644 (file)
--- a/test.cc
+++ b/test.cc
@@ -63,10 +63,13 @@ void TestReset() {
 template <typename T>
 void TestUnwrap() {
   zc::owned<T> t(new T());
-  //T* unwrap = t.get();
+  T* unwrap = t.get();
 
   zc::ref<T> ref = t.get();
   T* unwrap2 = ref;
+
+  zc::member<T> tm;
+  T* tp = &tm;
 }
 
 void TestMove() {