2 // { dg-do compile { target c++11 } }
4 template<class T, class = decltype(T())>
10 struct A { virtual ~A() = 0; };
12 static_assert(sizeof(f<int&>(0)) != 1, "Error");
13 static_assert(sizeof(f<void()>(0)) != 1, "Error");
14 static_assert(sizeof(f<A>(0)) != 1, "Error");