view gcc/testsuite/g++.dg/opt/complex3.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// PR 22022
// { dg-do compile }
// { dg-options "-O2" }

_Complex float f();
_Complex float g();
_Complex float h()throw();
void i(float)throw();

void j(void)
{
  _Complex float x = h();
  try
  {
    try
    {
      x = f();
    }catch (...)
    {
      x += g();
    }
  }catch(...){}
  i(__builtin_crealf(x)+__builtin_cimagf(x));
}