summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2019-04-05 08:58:22 +0200
committerEugen Wissner <belka@caraus.de>2019-04-05 08:58:22 +0200
commite6c6a2d21a6869bcfdf872479db566864a22f5fc (patch)
treed0b520486efcf3851dcb7236301929d80bd6b211 /tests
parentd55eac3bace62774e730921f4544681f00db4fc2 (diff)
downloadtanya-e6c6a2d21a6869bcfdf872479db566864a22f5fc.tar.gz
Make Array.get system function
.get() returns a memory block that can be changed if the original array is manipulated after getting the slice. So the slice returned by .get() may allow access to invalid memory.
Diffstat (limited to 'tests')
-rw-r--r--tests/tanya/container/tests/array.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tanya/container/tests/array.d b/tests/tanya/container/tests/array.d
index c8fb914..6dd90b4 100644
--- a/tests/tanya/container/tests/array.d
+++ b/tests/tanya/container/tests/array.d
@@ -136,7 +136,7 @@ import tanya.test.stub;
}
// const constructor tests
-@nogc nothrow pure @safe unittest
+@nogc nothrow pure @system unittest
{
auto v1 = const Array!int([1, 2, 3]);
auto v2 = Array!int(v1);