Retro68/gcc/libvtv/testsuite/libvtv.cc/event-main.cpp
2014-09-21 19:33:12 +02:00

16 lines
197 B
C++

// { 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);
}