summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr33589-2.C
blob: 325892bc684c13d1a0e2e6ba9f5c7033a024c403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile }

void f(void*) throw();

void somefunction()
{
try {
   void (*g)(void*) = (void (*)(void*))f;
   void (*g2)(int*) = (void (*)(int*))g;
    g2(0);
} catch (...)
{throw;}
}