blob: 95c4640313adf6feb4c3982e53f13b9468c4e0f3 [file] [log] [blame]
// { 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);
}