mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-12 00:37:41 +01:00
17 lines
373 B
D
17 lines
373 B
D
|
/*******************************************/
|
||
|
// 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[];
|
||
|
}
|