From 590241291d8a4d70eb9f68d0e66d09c976522ef3 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 18 Dec 2017 11:13:20 -0700 Subject: [PATCH] re PR middle-end/83460 (FAIL: g++.dg/pr79095-4.C) PR middle-end/83460 * g++.dg/pr79095-4.C: Remove compromised test. From-SVN: r255784 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/pr79095-4.C | 26 -------------------------- 2 files changed, 5 insertions(+), 26 deletions(-) delete mode 100644 gcc/testsuite/g++.dg/pr79095-4.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0963f4ec961..6e64c42cd0c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-12-18 Jeff Law + + PR middle-end/83460 + * g++.dg/pr79095-4.C: Remove compromised test. + 2017-12-18 Jakub Jelinek PR c++/83300 diff --git a/gcc/testsuite/g++.dg/pr79095-4.C b/gcc/testsuite/g++.dg/pr79095-4.C deleted file mode 100644 index df550257465..00000000000 --- a/gcc/testsuite/g++.dg/pr79095-4.C +++ /dev/null @@ -1,26 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-Wall -O3 -fdump-tree-vrp2" } */ - -#include - -void foo(std::vector &v); - -void vtest() -{ - std::vector v; - foo (v); - { - v.resize (v.size()-1); - } -} - -/* As written this testcase should trigger a warning. We overflow to -1U - if v.size() == 0 in foo(). This results in bogus calls to memset. - - The number of clearing loops in the IL can vary depending on the C++ - mode used for the test. But by the end of VRP2, there should be a single - clearing loop left and it should be using memcpy. */ -/* { dg-final { scan-tree-dump-times "__builtin_memset \\(_\[0-9\]+, 0, \[0-9\]+\\)" 1 "vrp2" } } */ - -/* And that call should trigger a warning. */ -/* { dg-warning "exceeds maximum object size" "" { target *-*-* } 0 } */ -- 2.30.2