1// PR middle-end/57499 2// { dg-do compile } 3 4struct S 5{ 6 ~S () __attribute__ ((noreturn)) {} // { dg-warning "function does return" } 7}; 8 9void 10foo () 11{ 12 S s; 13 throw 1; 14} 15