aboutsummaryrefslogtreecommitdiff
path: root/libphobos/testsuite/libphobos.betterc/test19561.d
blob: 96ecec51ae4f83725c225d32a6114577b5f0e32f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=19561

import core.memory;

extern(C) void main() @nogc nothrow pure
{
    int[3] a, b;
    a[] = 0;
    a[] = b[];
    //FIXME: Next line requires compiler change.
    //a[] = 1; // error: undefined reference to '_memset32'
    a[] += 1;
    a[] += b[];
    int[3] c = a[] + b[];
}