aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/special1.d
blob: 8881dd0c299fd1431eb1b058f09dbee394039ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile }

struct _Complex(T) { T re; T im; }
enum __c_complex_float : _Complex!float;

bool equals(__c_complex_float[] lhs, __c_complex_float[] rhs)
{
    foreach (i; 0 .. lhs.length)
        if (lhs.ptr[i] != rhs.ptr[i])
            return false;
    return true;
}