☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-13.C
☽
☼
gcc/testsuite/g++.dg/warn/Wunused-13.C
code
plain
raw
1
// Test whether -Wunused handles effectless indirect_ref operation ('*').
2
// { dg-do compile }
3
// { dg-options "-Wunused" }
4
5
void Foo(int* x) {
6
*x++; // { dg-warning "value computed is not used" }
7
}