mirror of
https://github.com/autc04/Retro68.git
synced 2025-02-25 22:29:38 +00:00
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);
|
||
|
}
|