libphobos/testsuite/libphobos.betterc/test19561.d
raw| 1 | /*******************************************/ |
| 2 | // https://issues.dlang.org/show_bug.cgi?id=19561 |
| 3 | |
| 4 | import core.memory; |
| 5 | |
| 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 | } |