aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/g++.dg/torture/pr57499.C
blob: fd985a199b84336d9f4becc2d56d697a3d2ad1d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR middle-end/57499
// { dg-do compile }

struct S
{
  ~S () __attribute__ ((noreturn)) {} // { dg-warning "function does return" }
};

void
foo ()
{
  S s;
  throw 1;
}