Debian Codegraph @

gcc/testsuite/gdc.dg/pr105004.d

raw
1 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105004
2 // { dg-do compile }
3
4 private struct _Complex(T)
5 {
6 T re;
7 T im;
8 }
9 enum __c_complex_float : _Complex!float;
10
11 __c_complex_float pr105004(float re, float im)
12 {
13 return typeof(return)(re, im);
14 }