]> git.ipfire.org Git - thirdparty/gcc.git/blame - libvtv/testsuite/libvtv.cc/event-main.cpp
Update libvtv testsuite so that most of the tests now run under
[thirdparty/gcc.git] / libvtv / testsuite / libvtv.cc / event-main.cpp
CommitLineData
41e96dc8
CT
1// { dg-do run }
2
2077db1b
CT
3#include "event-private.h"
4
5template<typename T> void derefIfNotNull(T* ptr)
6{
7 if (ptr != 0)
8 ptr->deref();
9}
10
11int main()
12{
13 Event * ev = new Event;
14 derefIfNotNull(ev);
15}