1 // PR c++/11725 2 // { dg-options "-Wreturn-type" } 3 4 template <class T> 5 struct A 6 { fooA7 int foo() 8 { 9 throw "Stop"; 10 } 11 }; 12