]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.dg/attr_optimize3.d
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gdc.dg / attr_optimize3.d
CommitLineData
8e84a142
IB
1// { dg-do compile }
2// { dg-options "-O0 -fdump-tree-optimized-raw" }
3
4import gcc.attributes;
5
6double notfast(double x)
7{
8 return x * x * x * x * x * x * x * x;
9}
10
11// { dg-final { scan-tree-dump-times "mult_expr, _" 7 "optimized" } }
12
13@fastmath
14static double fast(double x)
15{
16 return x * x * x * x * x * x * x * x;
17}
18
19// { dg-final { scan-tree-dump-times "mult_expr, powmult_" 3 "optimized" } }