Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-15.C
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" }
}