summaryrefslogtreecommitdiff
path: root/libvtv/testsuite/libvtv.cc/event-main.cpp
blob: 95c4640313adf6feb4c3982e53f13b9468c4e0f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do run }

#include "event-private.h"

template<typename T> void derefIfNotNull(T* ptr)
{
  if (ptr != 0)
    ptr->deref();
}

int main()
{
  Event * ev = new Event;
  derefIfNotNull(ev);
}