1 // { dg-options "-Wreturn-type" } 2 // PR c++/15742 3 4 extern void exit(int) __attribute__ ((noreturn)); 5 6 template<typename T> 7 struct A { find_cmpA8 int find_cmp(void) { exit(1); } 9 }; 10