2 // { dg-do compile { target c++11 } }
7 template< class T, class U >
8 decltype( true ? declval<T>() : declval<U>() ) test( int );
10 template< class T, class U >
14 template< class T, class U >
16 static const bool value = false;
20 struct is_same<T, T> {
21 static const bool value = true;
24 #define SA(X) static_assert ((X),#X)
26 typedef decltype( test<int*, double*>(0) ) void_expected;
27 SA ((is_same<void_expected, void>::value));
28 SA ((!is_same<void_expected, void*>::value));