2 // { dg-do compile { target c++11 } }
5 ostream& operator<<(int);
11 typedef char (&two)[2];
16 template<unsigned> struct ok { typedef int type; };
18 template<class U, class T>
19 static one test(decltype((make<U>() << make<T>()), 0));
21 template<class, class>
26 struct is_printable : private sfinae_base
28 enum { value = sizeof(test<ostream&, T>(0)) == sizeof(one) };
31 typedef int ok[is_printable<int>::value ? 1 : -1];