Debian Codegraph @

gcc/testsuite/g++.dg/warn/volatile1.C

raw
1 // PR c++/26577
2
3 struct A
4 {
5 A(const A&);
6 A& operator=(const A&);
7 void baz() volatile;
8 };
9 void A::baz() volatile
10 {
11 *this; // { dg-warning "indirection will not access" }
12 }