2 // { dg-do compile { target c++11 } }
6 static const bool value = true;
11 static const bool value = false;
17 template<typename> struct check { typedef void type; };
19 template<typename T, typename Enable = void>
20 struct has_public_f : false_type {};
33 struct Spub { public: void f(); };
34 struct Spriv { private: void f(); };
36 static_assert( has_public_f<Spub>::value, "Ouch");
37 static_assert(!has_public_f<Spriv>::value, "Ouch");