2 // { dg-options "-std=c++0x" }
4 // Test overload preference char*/int
6 template <typename T, typename U> struct tType_equal;
7 template <typename T> struct tType_equal<T, T> { typedef void type; };
9 template <typename T, typename U>
10 inline typename tType_equal<T, U>::type
15 long int f( long int );
21 type_equal<char*>(f(nullptr));
22 type_equal<int>(f(0));
23 decltype(nullptr) mynull = 0;
24 type_equal<char*>(f(mynull));