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

struct aaa
{
      aaa(_Complex float __z) ;
      _Complex float _M_value;
};
aaa::aaa(_Complex float __z)
{
  __z*=2.0f;
  _M_value = __z;
}