repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
HSA: support alignment for hsa_symbols (PR hsa/70391)
[official-gcc.git]
/
libvtv
/
testsuite
/
libvtv.cc
/
event-main.cpp
blob
95c4640313adf6feb4c3982e53f13b9468c4e0f3
1
// { dg-do run }
2
3
#include
"event-private.h"
4
5
template
<
typename T
>
void
derefIfNotNull
(
T
*
ptr
)
6
{
7
if
(
ptr
!=
0
)
8
ptr
->
deref
();
9
}
10
11
int
main
()
12
{
13
Event
*
ev
=
new
Event
;
14
derefIfNotNull
(
ev
);
15
}