From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1984) id 4763339960DB; Fri, 17 Jul 2020 13:17:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4763339960DB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594991842; bh=MctSTYV4Iqoq2/jjMTKGBNp85Grw2PniQoZUEEcrowo=; h=From:To:Subject:Date:From; b=rjVIt4mH8zzaIgFyhSlCJwfM/ztCHwzIijgB+lS6uvy83TAeDrCZ0kEVHIpvBH+FA P5xC4gHRqSEOp5Cf+D0MXBUCUDPmbgLb310LqWsG2sAlPC16x/8hcF8gszoXKbyp4+ ZMCr8yo9C1KSOzq6MNGT9as1+KZA+hrjqOBsjCfE= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Tamar Christina To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/arm-struct-reorg-wip)] libstdc++: test for failing assertion should use 'run' not 'compile' X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/vendors/ARM/heads/arm-struct-reorg-wip X-Git-Oldrev: 7485ace81de9ec9dd5c87edf67e359d31ce35a20 X-Git-Newrev: 4735f92d48c373031be296fd0f7a2cf31fc955da Message-Id: <20200717131722.4763339960DB@sourceware.org> Date: Fri, 17 Jul 2020 13:17:22 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2020 13:17:22 -0000 https://gcc.gnu.org/g:4735f92d48c373031be296fd0f7a2cf31fc955da commit 4735f92d48c373031be296fd0f7a2cf31fc955da Author: Jonathan Wakely Date: Fri Feb 28 17:05:45 2020 +0000 libstdc++: test for failing assertion should use 'run' not 'compile' And it only needs to define _GLIBCXX_ASSERTIONS not _GLIBCXX_DEBUG. * testsuite/24_iterators/range_operations/advance_debug_neg.cc: Run test instead of just compiling it. Diff: --- libstdc++-v3/ChangeLog | 5 +++++ .../24_iterators/range_operations/advance_debug_neg.cc | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0feef87cce6..98eaff92fd1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2020-02-28 Jonathan Wakely + + * testsuite/24_iterators/range_operations/advance_debug_neg.cc: Run + test instead of just compiling it. + 2020-02-28 Patrick Palka * include/std/ranges (reverse_view::_S_needs_cached_begin): Set to false diff --git a/libstdc++-v3/testsuite/24_iterators/range_operations/advance_debug_neg.cc b/libstdc++-v3/testsuite/24_iterators/range_operations/advance_debug_neg.cc index ffda650fb0a..7a1ef97df14 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_operations/advance_debug_neg.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_operations/advance_debug_neg.cc @@ -15,8 +15,9 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a -D_GLIBCXX_DEBUG" } -// { dg-do compile { xfail c++2a } } +// { dg-options "-std=gnu++2a -D_GLIBCXX_ASSERTIONS" } +// { dg-do run { xfail *-*-* } } +// { dg-require-effective-target c++2a } #include #include @@ -29,3 +30,8 @@ test01() auto iter = c.begin(); std::ranges::advance(iter, -1); } + +int main() +{ + test01(); +}