summaryrefslogtreecommitdiff
path: root/libphobos/testsuite/libphobos.betterc/test19561.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/testsuite/libphobos.betterc/test19561.d')
-rw-r--r--libphobos/testsuite/libphobos.betterc/test19561.d16
1 files changed, 16 insertions, 0 deletions
diff --git a/libphobos/testsuite/libphobos.betterc/test19561.d b/libphobos/testsuite/libphobos.betterc/test19561.d
new file mode 100644
index 00000000000..96ecec51ae4
--- /dev/null
+++ b/libphobos/testsuite/libphobos.betterc/test19561.d
@@ -0,0 +1,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[];
+}