OSDN Git Service

* decl.c (start_preparsed_function): Set
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / opt / pr14888.C
1 // PR target/14888
2 // This used to ICE because the truncdfsf2 isn't completely eliminated
3
4 // { dg-do compile }
5 // { dg-options "-O2 -ffast-math" }
6
7 class xcomplex
8 {
9 public:
10   float re, im;
11
12   xcomplex &operator*= (const float &fact)
13   { re*=fact; im*=fact; return *this; }
14 };
15
16 void foo (xcomplex &almT, xcomplex &almG)
17 {
18   double gb;
19   almT*=gb;
20   almG*=gb*42;
21 }
22