Commit 13cddbc1 by Christophe Lyon Committed by Christophe Lyon

Fix dg-require before dg-run directives in testsuite.

libstdc++-v3/ChangeLog:

2016-09-14  Christophe Lyon  <christophe.lyon@linaro.org>

	* testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
	Move dg-do directive before dg-skip.
	* testsuite/21_strings/debug/iterator_self_move_assign_neg.cc:
	Move dg-do directive before dg-require.
	* testsuite/21_strings/debug/self_move_assign_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/57779_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/60587_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/assign1_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/assign2_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/assign3_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/construct1_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/construct2_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/construct3_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/insert1_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/insert2_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/insert3_neg.cc: Likewise.
	* testsuite/23_containers/vector/debug/insert5_neg.cc: Likewise.
	* testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: Likewise.
	* testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
	Likewise.
	* testsuite/25_algorithms/pop_heap/empty2_neg.cc: Likewise.
	* testsuite/25_algorithms/pop_heap/empty_neg.cc: Likewise.
	* testsuite/27_io/objects/char/12048-5.cc: Likewise.
	* testsuite/ext/special_functions/conf_hyperg/check_nan.cc: Likewise.
	* testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.

gcc/testsuite/ChangeLog:

2016-09-14  Christophe Lyon  <christophe.lyon@linaro.org>

	* g++.dg/cpp0x/lambda/lambda-mangle.C: Move dg-do directive before
	dg-require.
	* g++.dg/ext/builtin_alloca.C: Likewise.
	* g++.dg/template/spec35.C: Likewise.
	* gcc.dg/builtins-68.c: Likewise.
	* gcc.misc-tests/gcov-13.c: Likewise.
	* gcc.misc-tests/gcov-14.c: Likewise.

From-SVN: r240135
parent a90638d4
2016-09-14 Christophe Lyon <christophe.lyon@linaro.org>
* g++.dg/cpp0x/lambda/lambda-mangle.C: Move dg-do directive before
dg-require.
* g++.dg/ext/builtin_alloca.C: Likewise.
* g++.dg/template/spec35.C: Likewise.
* gcc.dg/builtins-68.c: Likewise.
* gcc.misc-tests/gcov-13.c: Likewise.
* gcc.misc-tests/gcov-14.c: Likewise.
2016-09-13 Jim MacArthur <jim.macarthur@codethink.co.uk> 2016-09-13 Jim MacArthur <jim.macarthur@codethink.co.uk>
* gfortran.dg/dec_structure_14.f90: New testcase. * gfortran.dg/dec_structure_14.f90: New testcase.
......
// Test lambda mangling // Test lambda mangling
// { dg-require-weak "" }
// { dg-do compile { target c++11 } } // { dg-do compile { target c++11 } }
// { dg-require-weak "" }
// { dg-options "-fno-inline" } // { dg-options "-fno-inline" }
template<typename F> int algo(F fn) { return fn(); } template<typename F> int algo(F fn) { return fn(); }
......
// PR middle-end/69780 - [4.9/5/6 Regression] ICE on // PR middle-end/69780 - [4.9/5/6 Regression] ICE on
// __builtin_alloca_with_align with small alignment // __builtin_alloca_with_align with small alignment
// { dg-require-effective-target alloca }
// { dg-do compile } // { dg-do compile }
// { dg-require-effective-target alloca }
#define CHAR_BIT __CHAR_BIT__ #define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__ #define SIZE_MAX __SIZE_MAX__
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// C++ DR 605 -- "...the linkage of an explicit specialization must be that of // C++ DR 605 -- "...the linkage of an explicit specialization must be that of
// the template." // the template."
// { dg-require-weak "" }
// { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-require-weak "" }
template<class T> template<class T>
static void f1 (T) { } static void f1 (T) { }
......
/* PR middle-end/69780 - [4.9/5/6 Regression] ICE on /* PR middle-end/69780 - [4.9/5/6 Regression] ICE on
__builtin_alloca_with_align with small alignment */ __builtin_alloca_with_align with small alignment */
/* { dg-require-effective-target alloca } */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target alloca } */
/* { dg-options "-Wno-long-long" } */ /* { dg-options "-Wno-long-long" } */
#define CHAR_BIT __CHAR_BIT__ #define CHAR_BIT __CHAR_BIT__
......
/* Test gcov weak ellision. */ /* Test gcov weak ellision. */
/* { dg-do run { target native } } */
/* { dg-options "-fprofile-arcs -ftest-coverage" } */ /* { dg-options "-fprofile-arcs -ftest-coverage" } */
/* { dg-require-weak "" } */ /* { dg-require-weak "" } */
/* { dg-do run { target native } } */
/* { dg-additional-sources "gcovpart-13b.c" } */ /* { dg-additional-sources "gcovpart-13b.c" } */
/* { dg-skip-if "weak ellision not supported" { { hppa*-*-hpux* } && { ! lp64 } } { "*" } { "" } } */ /* { dg-skip-if "weak ellision not supported" { { hppa*-*-hpux* } && { ! lp64 } } { "*" } { "" } } */
......
/* Test gcov extern inline. */ /* Test gcov extern inline. */
/* { dg-do run { target native } } */
/* { dg-options "-O2 -fprofile-arcs -ftest-coverage -fgnu89-inline" } */ /* { dg-options "-O2 -fprofile-arcs -ftest-coverage -fgnu89-inline" } */
/* The following line arranges that Darwin has behavior like elf weak import. */ /* The following line arranges that Darwin has behavior like elf weak import. */
/* { dg-additional-options "-flat_namespace -undefined suppress" { target *-*-darwin* } } */ /* { dg-additional-options "-flat_namespace -undefined suppress" { target *-*-darwin* } } */
/* { dg-require-weak "" } */ /* { dg-require-weak "" } */
/* { dg-do run { target native } } */
/* { dg-skip-if "undefined weak not supported" { { hppa*-*-hpux* } && { ! lp64 } } } */ /* { dg-skip-if "undefined weak not supported" { { hppa*-*-hpux* } && { ! lp64 } } } */
/* { dg-skip-if "undefined weak not supported" { powerpc-ibm-aix* } } */ /* { dg-skip-if "undefined weak not supported" { powerpc-ibm-aix* } } */
......
2016-09-14 Christophe Lyon <christophe.lyon@linaro.org>
* testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
Move dg-do directive before dg-skip.
* testsuite/21_strings/debug/iterator_self_move_assign_neg.cc:
Move dg-do directive before dg-require.
* testsuite/21_strings/debug/self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/57779_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/60587_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/assign1_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/assign2_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/assign3_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/construct1_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/construct2_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/construct3_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/insert1_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/insert2_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/insert3_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/insert5_neg.cc: Likewise.
* testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: Likewise.
* testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
Likewise.
* testsuite/25_algorithms/pop_heap/empty2_neg.cc: Likewise.
* testsuite/25_algorithms/pop_heap/empty_neg.cc: Likewise.
* testsuite/27_io/objects/char/12048-5.cc: Likewise.
* testsuite/ext/special_functions/conf_hyperg/check_nan.cc: Likewise.
* testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
2016-09-13 Ville Voutilainen <ville.voutilainen@gmail.com> 2016-09-13 Ville Voutilainen <ville.voutilainen@gmail.com>
Implement P0040R3, Extending memory management tools. Implement P0040R3, Extending memory management tools.
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
// 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 run { xfail *-*-* } }
// { dg-require-debug-mode "" } // { dg-require-debug-mode "" }
// { dg-options "-std=gnu++11" } // { dg-options "-std=gnu++11" }
// { dg-do run { xfail *-*-* } }
#include <debug/string> #include <debug/string>
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
// 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 run { xfail *-*-* } }
// { dg-require-debug-mode "" } // { dg-require-debug-mode "" }
// { dg-options "-std=gnu++11" } // { dg-options "-std=gnu++11" }
// { dg-do run { xfail *-*-* } }
#include <debug/string> #include <debug/string>
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
// 23.2.5 class vector<bool> [lib.vector.bool] // 23.2.5 class vector<bool> [lib.vector.bool]
// { dg-skip-if "" { powerpc64-*-freebsd* } { "*" } { "" } }
// { dg-do run { xfail *-*-darwin8.[0-4].* } } // { dg-do run { xfail *-*-darwin8.[0-4].* } }
// { dg-skip-if "" { powerpc64-*-freebsd* } { "*" } { "" } }
#include <vector> #include <vector>
#include <stdexcept> #include <stdexcept>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <vector> #include <vector>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
// PR libstdc++/60587 // PR libstdc++/60587
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <vector> #include <vector>
#include <debug/checks.h> #include <debug/checks.h>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <vector> #include <vector>
#include <debug/checks.h> #include <debug/checks.h>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <vector> #include <vector>
#include <debug/checks.h> #include <debug/checks.h>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <vector> #include <vector>
#include <debug/checks.h> #include <debug/checks.h>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <vector> #include <vector>
#include <debug/checks.h> #include <debug/checks.h>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <vector> #include <vector>
#include <debug/checks.h> #include <debug/checks.h>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <vector> #include <vector>
#include <debug/checks.h> #include <debug/checks.h>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <vector> #include <vector>
#include <debug/checks.h> #include <debug/checks.h>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <vector> #include <vector>
#include <debug/checks.h> #include <debug/checks.h>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <vector> #include <vector>
#include <debug/checks.h> #include <debug/checks.h>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do compile } // { dg-do compile }
// { dg-require-debug-mode "" }
#include <algorithm> #include <algorithm>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +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-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <algorithm> #include <algorithm>
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
// 25.3.6 Heap operations [lib.alg.heap.operations] // 25.3.6 Heap operations [lib.alg.heap.operations]
// { dg-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <algorithm> #include <algorithm>
#include <functional> #include <functional>
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
// 25.3.6 Heap operations [lib.alg.heap.operations] // 25.3.6 Heap operations [lib.alg.heap.operations]
// { dg-require-debug-mode "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <algorithm> #include <algorithm>
......
...@@ -22,9 +22,8 @@ ...@@ -22,9 +22,8 @@
// equivalent and interchangable. Currently however, cin.rdbuf()->sungetc() // equivalent and interchangable. Currently however, cin.rdbuf()->sungetc()
// only returns characters that were read with cin.rdbuf()->sbumpc() // only returns characters that were read with cin.rdbuf()->sbumpc()
// { dg-require-fileio "" }
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
// { dg-require-fileio "" }
#include <iostream> #include <iostream>
#include <cstdio> #include <cstdio>
......
// { dg-do run { target c++11 } }
// { dg-require-c-std "" } // { dg-require-c-std "" }
// { dg-add-options ieee } // { dg-add-options ieee }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
// { dg-do run { target c++11 } }
// Copyright (C) 2016 Free Software Foundation, Inc. // Copyright (C) 2016 Free Software Foundation, Inc.
// //
......
// { dg-do run { target c++11 } }
// { dg-require-c-std "" } // { dg-require-c-std "" }
// { dg-add-options ieee } // { dg-add-options ieee }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
// { dg-do run { target c++11 } }
// Copyright (C) 2016 Free Software Foundation, Inc. // Copyright (C) 2016 Free Software Foundation, Inc.
// //
......
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