Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-mutable6.C
blob2c946e388ab4b0ccca05764bc6ad15e85f7d6a5e
1 // PR c++/110463
2 // { dg-do compile { target c++11 } }
4 struct U {
5   mutable int x = 1;
6 };
8 struct V {
9   mutable int y = 1+1;
12 int main() {
13   constexpr U u = {};
14   constexpr int x = u.x; // { dg-error "mutable" }
16   constexpr V v = {};
17   constexpr int y = v.y; // { dg-error "mutable" }