From 6a93d42ad87ce8bdc21815fd2893da3dce275de8 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Sun, 23 Nov 2014 05:30:26 +0000 Subject: [PATCH] initlist-lifetime1.C: Fix testcase where argc is always greater than 1 (octeon simulator). 2014-11-22 Andrew Pinski * g++.dg/cpp0x/initlist-lifetime1.C: Fix testcase where argc is always greater than 1 (octeon simulator). * g++.dg/cpp0x/initlist-lifetime2.C: Likewise. From-SVN: r217979 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/cpp0x/initlist-lifetime1.C | 4 +++- gcc/testsuite/g++.dg/cpp0x/initlist-lifetime2.C | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4ed30eaa0ae..e3e9611b662 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-11-22 Andrew Pinski + + * g++.dg/cpp0x/initlist-lifetime1.C: Fix testcase where + argc is always greater than 1 (octeon simulator). + * g++.dg/cpp0x/initlist-lifetime2.C: Likewise. + 2014-11-22 Andrew Pinski PR target/63971 diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist-lifetime1.C b/gcc/testsuite/g++.dg/cpp0x/initlist-lifetime1.C index d3b0fc3609c..9b836754f0e 100644 --- a/gcc/testsuite/g++.dg/cpp0x/initlist-lifetime1.C +++ b/gcc/testsuite/g++.dg/cpp0x/initlist-lifetime1.C @@ -23,9 +23,11 @@ struct B { const AL& alr; }; +volatile bool always_false = false; + int main(int argc, const char** argv) { - do_throw = (argc > 1); // always false, but optimizer can't tell + do_throw = always_false; // always false, but optimizer can't tell AL ar[] = {{1,2},{3,4}}; B b = {{5,6},{7,8}}; AL3 al3 = {{{1},{2},{3}}}; diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist-lifetime2.C b/gcc/testsuite/g++.dg/cpp0x/initlist-lifetime2.C index 77fc961c966..732736691e3 100644 --- a/gcc/testsuite/g++.dg/cpp0x/initlist-lifetime2.C +++ b/gcc/testsuite/g++.dg/cpp0x/initlist-lifetime2.C @@ -53,9 +53,11 @@ struct D { D() { ok = true; } }; +volatile bool always_false = false; + int main(int argc, const char** argv) { - do_throw = (argc > 1); // always false, but optimizer can't tell + do_throw = always_false; // always false, but optimizer can't tell ok = false; C c; ok = false; -- 2.30.2