2 // { dg-do compile { target c++11 } }
7 constexpr T foo (void);
14 return *(T *) (s1 + 10);
17 constexpr S s = { 0,1,2,3,4,5,6,7,8,9,10 };
19 #define SA(X) static_assert ((X), #X)
20 SA(s.foo() == 10); // { dg-error "discards qualifiers" "" { target c++14 } }