blob: 4572b0a2265f79f02d0153ca8c420b30e6a43901 [file] [log] [blame]
// { dg-do compile { target c++17 } }
template <class,class> struct same;
template <class T> struct same<T,T> {};
template <class T = void> struct A { };
template <class T> struct B { B(T,T); };
int main()
{
same<decltype(new A),A<void>*>();
same<decltype(new B{1,2}),B<int>*>();
}