summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/mutable1.C
blob: 4dd37185d729c56ecbba30e13a97afbc42d98bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/77375
// { dg-do run { target c++11 } }

struct Base { mutable int i; };
struct Derived : Base {};
const Derived foo{};

int
main ()
{
  foo.i = 42;
}