aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/pr79396.C
blob: 328c271358a3216632019f3f89922517e8331de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR middle-end/79396
// { dg-do compile }
// { dg-options "-fnon-call-exceptions -O2" }
// { dg-additional-options "-mfma" { target i?86-*-* x86_64-*-* } }

struct A { A (); ~A (); };

float
foo (float x)
{
  A a;
  return __builtin_pow (x, 2) + 2;
}