blob: efaebc006e8353de401191d4a06e4836f8ff0885 [file] [log] [blame]
// PR c++/39875
// { dg-do compile }
// { dg-options "-Wunused-value" }
int *i;
void
foo ()
{
*i++; // { dg-warning "value computed is not used" }
(void) *i++; // { dg-bogus "value computed is not used" }
}