Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr57499.C

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