1 // Test whether -Wunused handles effectless indirect_ref operation ('*').
2 // { dg-do compile }
3 // { dg-options "-Wunused" }
4 
Foo(int * x)5 void Foo(int* x) {
6   *x++; // { dg-warning "value computed is not used" }
7 }
8