From 4f4854429704624280a70c698dbc03724e55d988 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 26 May 2021 10:29:03 +0200 Subject: Allow building with GDC 10.3 --- tests/tanya/algorithm/tests/mutation.d | 6 +++++- tests/tanya/range/tests/adapter.d | 12 ------------ 2 files changed, 5 insertions(+), 13 deletions(-) (limited to 'tests') diff --git a/tests/tanya/algorithm/tests/mutation.d b/tests/tanya/algorithm/tests/mutation.d index 19ab636..4403dd7 100644 --- a/tests/tanya/algorithm/tests/mutation.d +++ b/tests/tanya/algorithm/tests/mutation.d @@ -39,7 +39,11 @@ import tanya.test.stub; int value; void opCall(int value) @nogc nothrow pure @safe - in (this.value == 0) + in + { + assert(this.value == 0); + } + do { this.value = value; } diff --git a/tests/tanya/range/tests/adapter.d b/tests/tanya/range/tests/adapter.d index 4ebffab..cdd90a1 100644 --- a/tests/tanya/range/tests/adapter.d +++ b/tests/tanya/range/tests/adapter.d @@ -12,18 +12,6 @@ private struct Container } } -// Broken test because of the issue #20006. -@nogc nothrow pure @safe unittest -{ - auto func()() - { - Container container; - return backInserter(container); - } - // static assert(!is(typeof(func!()))); - static assert(is(typeof(func!()))); -} - @nogc nothrow pure @safe unittest { Container container; -- cgit v1.2.3