blob: 5b1050f9a1c0409725fbd25e01a9ce574036f1e5 [file] [log] [blame]
// PR c++/26577
struct A
{
A(const A&);
A& operator=(const A&);
void baz() volatile;
};
void A::baz() volatile
{
*this; // { dg-warning "will not be accessed" }
}