Debian Codegraph @

gcc/testsuite/gdc.dg/special1.d

raw
1 // { dg-do compile }
2
3 struct _Complex(T) { T re; T im; }
4 enum __c_complex_float : _Complex!float;
5
6 bool equals(__c_complex_float[] lhs, __c_complex_float[] rhs)
7 {
8 foreach (i; 0 .. lhs.length)
9 if (lhs.ptr[i] != rhs.ptr[i])
10 return false;
11 return true;
12 }