summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/pr47639.c
blob: 6ee8bb7dee473ba0504e7ecf7d675f991e9461b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do compile }
// { dg-options "-fnon-call-exceptions" }

typedef int __attribute__ ((vector_size (8))) vec;

vec foo (vec v1, vec v2)
{
  try
    {
      return v1 / v2;
    }
  catch (...)
    {
      throw;
    }
}