blob: c93b89f44c01beeb0654dd72077881363b59311c [file] [log] [blame]
// { dg-do run }
struct B
{
virtual int f() volatile
{ return 0; }
};
struct D : public B
{
virtual int f()
{ return 1; }
};
int main()
{
volatile D d;
volatile B& b = d;
return b.f();
}