mirror of git://gcc.gnu.org/git/gcc.git
Limit std::tuple tests to run for C++11 and later
* testsuite/20_util/tuple/cons/66338.cc: Limit test to C++11 and later. * testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc: Likewise. From-SVN: r238945
This commit is contained in:
parent
98b5fb3cbc
commit
a02a61eeaa
|
|
@ -1,5 +1,10 @@
|
||||||
2016-08-01 Jonathan Wakely <jwakely@redhat.com>
|
2016-08-01 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
* testsuite/20_util/tuple/cons/66338.cc: Limit test to C++11 and
|
||||||
|
later.
|
||||||
|
* testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc:
|
||||||
|
Likewise.
|
||||||
|
|
||||||
* testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: Use
|
* testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: Use
|
||||||
C++98-compatible initialization for array.
|
C++98-compatible initialization for array.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@
|
||||||
// with this library; see the file COPYING3. If not see
|
// with this library; see the file COPYING3. If not see
|
||||||
// <http://www.gnu.org/licenses/>.
|
// <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
// { dg-do compile { target c++11 } }
|
||||||
|
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
|
||||||
struct S {
|
struct S {
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@
|
||||||
// with this library; see the file COPYING3. If not see
|
// with this library; see the file COPYING3. If not see
|
||||||
// <http://www.gnu.org/licenses/>.
|
// <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
// { dg-do compile { target c++11 } }
|
||||||
|
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
@ -27,4 +29,3 @@ int main() {
|
||||||
tuple<Something> t1;
|
tuple<Something> t1;
|
||||||
tuple<Something> t2 = t1;
|
tuple<Something> t2 = t1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue