summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr64353.C
blob: 7859918cf56cc89734aa2cd96408045633445c6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2" } */

class C
{
  int y, x;
  void i ();
  bool __attribute__((const)) xx () { return x; }
};

void C::i ()
{
  if (xx ())
    x = 1;
}