(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
constexpr-mutable3.C
// PR c++/92505
// { dg-do compile { target c++11 } }

struct A { mutable int m; };

constexpr int f(A a) { return a.m; }

static_assert(f({42}) == 42, "");
// { dg-error "non-constant|mutable" "" { target c++11_only } .-1 }