repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-21.C
blob
d279e5980330ee62f64f7a9cc2962e5e14264544
1
// PR c++/58325
2
// { dg-do compile }
3
// { dg-options "-Wunused" }
4
5
void
6
f1 ()
7
{
8
int *volatile a = new int[1];
9
delete[] a;
10
}
11
12
void
13
f2 ()
14
{
15
int *b = new int[1];
16
delete[] b;
17
}
18
19
void
20
f3 ()
21
{
22
int *volatile c = new int;
23
delete c;
24
}
25
26
void
27
f4 ()
28
{
29
int *d = new int;
30
delete d;
31
}