2 // { dg-do compile { target c++14 } }
10 auto const s = S{}; // { dg-message "originally declared" }
11 *s.ptr = 2; // { dg-error "modifying a const object" }
15 static_assert(f(), ""); // { dg-error "non-constant condition" }
16 // { dg-message "in 'constexpr' expansion of" "" { target *-*-* } .-1 }