1 // { dg-do compile { target c++11 } }
8 static const int eights = 888;
9 static constexpr int nines = 999;
19 constexpr pixel ur = { 1294, 1024 }; // OK
24 explicit constexpr Length(int i = 0) : val(i) { }
29 constexpr int myabs(int x)
30 { return x < 0 ? -x : x; } // OK
32 Length l(myabs(-97)); // OK
38 explicit debug_flag(bool);
39 constexpr bool is_on(); // { dg-error "enclosing class .* not a literal type" "" { target c++11_only } }