summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/mutable1.C
blob: b6c146ad660980cc3d0575e24271aad24265895d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do run  }
struct X
{
  X () { }
  mutable int x;
};

int main ()
{
  const X x;
  x.x = 0;
}