summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/array1.d
blob: af81813e7365f08d3aa5c39e0f6a1262eb15fb2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile }
// { dg-final { scan-assembler-not "_d_arraycopy" } }

void test1()
{
    int[10] a1 = void;
    int[10] a2 = void;
    a1[] = a2[];
}

void test2(int[] a1, int[] a2)
{
    a1[] = a2[];
}