Commit 6a93d42a by Andrew Pinski Committed by Andrew Pinski

initlist-lifetime1.C: Fix testcase where argc is always greater than 1 (octeon simulator).

2014-11-22  Andrew Pinski  <apinski@cavium.com>

        * 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
parent 0046bb1e
2014-11-22 Andrew Pinski <apinski@cavium.com>
* 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 <apinski@cavium.com>
PR target/63971
* gcc.target/aarch64/test_frame_1.c: Expect only two loads of
x30 (in the epilogue).
......
......@@ -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}}};
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment