summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/eh/loop2.C
blob: 1e85fa1af22b60045e37f8a2d16554381f6a80b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Test that breaking out of a handler works.
// { dg-do run }

int main ()
{
  while (1)
    {
      try { throw 1; }
      catch (...) { break; }
    }
}