1/* { dg-do compile } */ 2/* { dg-options "-O2" } */ 3 4class C 5{ 6 int y, x; 7 void i (); 8 bool __attribute__((const)) xx () { return x; } 9}; 10 11void C::i () 12{ 13 if (xx ()) 14 x = 1; 15} 16