This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Comitted/c++ testsuite] Fix initlist-lifetime*.C on some simulators


Hi,
  On some simulators (Octeon simple-exec) argc can be greater than 2.
This causes  initlist-lifetime1.C and  initlist-lifetime2.C to fail.
To fix this, I use a volatile variable.

Committed as obvious after testing on x86_64.

Thanks,
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.

Attachment: fixsomec++testcases.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]