1 2 3 4 5 6 7 8 9
// { dg-options "-Wctor-dtor-privacy" } struct C { // { dg-warning "" } static bool result; private: static bool check(); }; bool C::result = check();