summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/pr105235-1.C
blob: b74d2034f5b1092e21275f1ec6c6a581e16d04b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR tree-optimization/105235
// { dg-do compile }
// { dg-options "-O -fno-tree-dominator-opts -fexceptions -fnon-call-exceptions -fno-tree-fre" }

struct S { ~S (); };

double
foo (double d)
{
  S s;
  return __builtin_ilogbl (d) + __builtin_sinl (d);
}