41e96dc8f0
the dejagnu test harness. From-SVN: r202373
16 lines
197 B
C++
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);
|
|
}
|