2 // { dg-do compile { target c++11 } }
4 struct t { static const bool value = true; };
5 struct f { static const bool value = false; };
10 static t check(X*, decltype(T::fun())* = 0); // { dg-error "without object" }
13 typedef decltype(check((T*)(0))) ret;
14 static const bool value = ret::value;
17 struct test { int fun() { return 0; } };
19 bool b = has_static<test>::value;