summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/pr58165.C
blob: d758e370050d0a7d44924d25ea22849164153882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR tree-optimization/58165
// { dg-do compile }
// { dg-options "-O2" }

extern "C" float sqrtf (float);

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

void
foo (double d)
{
  A a;
  sqrtf (d);
}