xref: /netbsd-src/external/gpl3/gcc/dist/libphobos/testsuite/libphobos.betterc/test19561.d (revision b1e838363e3c6fc78a55519254d99869742dd33c)
1 /*******************************************/
2 // https://issues.dlang.org/show_bug.cgi?id=19561
3 
4 import core.memory;
5 
main()6 extern(C) void main() @nogc nothrow pure
7 {
8     int[3] a, b;
9     a[] = 0;
10     a[] = b[];
11     //FIXME: Next line requires compiler change.
12     //a[] = 1; // error: undefined reference to '_memset32'
13     a[] += 1;
14     a[] += b[];
15     int[3] c = a[] + b[];
16 }
17