2008-07-06 Kai Tietz <kai.tietz@onevision.com>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / collapse-bug.C
blob02a59cd1d21f5bec20f10090391642503f843ef9
1 // { dg-options "--std=c++0x" }
2 template<typename T, typename U> struct same_type;
3 template<typename T> struct same_type<T, T> {};
5 template <typename T>
6 struct S
8   typedef T const (&type)();
9 };
11 void f()
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&(&)()>();