summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.eh/crash3.C
blob: e0cc420360c5a9e8b7fda6a88356d65d53d263ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// Origin: Marc Espie <Marc.Espie@liafa.jussieu.fr>
// Used to use -fsjlj-exceptions, but that isn't an option anymore.

extern double f(double a); 

void 
a()
{
        double e;
        double value;

        if (e == 0)
            throw 1;
        value = f(e);
}