Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / other / crash-5.C
blob81e5bac8a253d0a9847d2a8153dc0d57bf16e3e0
1 // Origin: PR c++/42758
2 // { dg-do compile }
4 template<class T> struct less {};
6 template<class T, typename U = less<T> > struct set {};
8 struct int_less_than {};
10 void assert_fail (const char*);
12 void f(const set<int, int_less_than>&)
14     assert_fail (__PRETTY_FUNCTION__);