summaryrefslogtreecommitdiff
path: root/libvtv/testsuite/event-main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libvtv/testsuite/event-main.cc')
-rw-r--r--libvtv/testsuite/event-main.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/libvtv/testsuite/event-main.cc b/libvtv/testsuite/event-main.cc
new file mode 100644
index 00000000000..b0312848934
--- /dev/null
+++ b/libvtv/testsuite/event-main.cc
@@ -0,0 +1,13 @@
+#include "event-private.h"
+
+template<typename T> void derefIfNotNull(T* ptr)
+{
+ if (ptr != 0)
+ ptr->deref();
+}
+
+int main()
+{
+ Event * ev = new Event;
+ derefIfNotNull(ev);
+}