aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/torture/pr46364.C
blob: 8098991ace02a59a8d4a47ba03d3e0e8bdec3eaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do compile }
#include <string>

void a() throw (int);
void b(std::string const &);

void c(std::string *e)
{
  b("");

  try {
      a();
  } catch (...) {
      *e = "";
  }
}

void d() {
    c(0);
}