Sign in
gnu
/
gcc
/
0b6b70a0733672600644c8df96942cda5bf86d3d
/
.
/
libvtv
/
testsuite
/
libvtv.cc
/
event-main.cpp
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
);
}