Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wunused-13.C

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 }