PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / complex4.C
blobd6a0be2cf1fafdb2f49aac99af78d62b2462c8a5
1 // PR 24362
2 // { dg-do compile }
3 // { dg-options "-O2" }
5 typedef __complex__ double cdouble;
6 cdouble elt_zero();
7 const cdouble *pointer();
9 cdouble trace(void)
11   cdouble output = elt_zero();
12   const cdouble *data = pointer();
13   output += data[1];
14   return output;