1 // { dg-do compile { target c++11 } }
2 template<typename T, typename U> struct same_type;
3 template<typename T> struct same_type<T, T> {};
8 typedef T const (&type)();
13 // initial implementation didn't ignore const qualifier on
14 // reference, resulting in a typedef of 'const int& (&)()'
15 same_type<S<int &>::type, int&(&)()>();