blob: d279e5980330ee62f64f7a9cc2962e5e14264544 [file] [log] [blame]
// PR c++/58325
// { dg-do compile }
// { dg-options "-Wunused" }
void
f1 ()
{
int *volatile a = new int[1];
delete[] a;
}
void
f2 ()
{
int *b = new int[1];
delete[] b;
}
void
f3 ()
{
int *volatile c = new int;
delete c;
}
void
f4 ()
{
int *d = new int;
delete d;
}