Fix dg-require before dg-run directives in testsuite.
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 14 Sep 2016 13:37:23 +0000 (13:37 +0000)
committerChristophe Lyon <clyon@gcc.gnu.org>
Wed, 14 Sep 2016 13:37:23 +0000 (15:37 +0200)
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

30 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle.C
gcc/testsuite/g++.dg/ext/builtin_alloca.C
gcc/testsuite/g++.dg/template/spec35.C
gcc/testsuite/gcc.dg/builtins-68.c
gcc/testsuite/gcc.misc-tests/gcov-13.c
gcc/testsuite/gcc.misc-tests/gcov-14.c
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/debug/iterator_self_move_assign_neg.cc
libstdc++-v3/testsuite/21_strings/debug/self_move_assign_neg.cc
libstdc++-v3/testsuite/23_containers/vector/bool/modifiers/insert/31370.cc
libstdc++-v3/testsuite/23_containers/vector/debug/57779_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/60587_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/assign1_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/assign2_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/assign3_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/construct1_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/construct2_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/construct3_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/insert1_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/insert2_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/insert3_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/insert5_neg.cc
libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/irreflexive.cc
libstdc++-v3/testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc
libstdc++-v3/testsuite/25_algorithms/pop_heap/empty2_neg.cc
libstdc++-v3/testsuite/25_algorithms/pop_heap/empty_neg.cc
libstdc++-v3/testsuite/27_io/objects/char/12048-5.cc
libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc
libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc

index e4643717a6ac54db2d1ad8e9dbd128e180e35aec..636f031b3db96e106741d77dee15747171a5b3c0 100644 (file)
@@ -1,3 +1,13 @@
+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>
 
        * gfortran.dg/dec_structure_14.f90: New testcase.
index 20ef282ac24e5dd537b0e3258a12707c25baaf56..15b8b79ecbc3ed33528d2524edb6bcce847839eb 100644 (file)
@@ -1,6 +1,6 @@
 // Test lambda mangling
-// { dg-require-weak "" }
 // { dg-do compile { target c++11 } }
+// { dg-require-weak "" }
 // { dg-options "-fno-inline" }
 
 template<typename F> int algo(F fn) { return fn(); }
index 7a0d331ced064ff6fcb93f49cc6b1a594e7f7250..e857502685a76c2316c9f869cc4724e63d6a914c 100644 (file)
@@ -1,7 +1,7 @@
 // PR middle-end/69780 - [4.9/5/6 Regression] ICE on
 //     __builtin_alloca_with_align with small alignment
-// { dg-require-effective-target alloca }
 // { dg-do compile }
+// { dg-require-effective-target alloca }
 
 #define CHAR_BIT  __CHAR_BIT__
 #define SIZE_MAX  __SIZE_MAX__
index 709ece5dd90bbdca7b02809f40d2363828fcfb09..e82323ce448f219bb8d6a99f4a0927bba88777c8 100644 (file)
@@ -2,8 +2,8 @@
 // C++ DR 605 -- "...the linkage of an explicit specialization must be that of
 // the template."
 
-// { dg-require-weak "" }
 // { dg-do compile { target i?86-*-* x86_64-*-* } }
+// { dg-require-weak "" }
 
 template<class T>
 static void f1 (T) { }
index c0cc1ebdcb9ab01a4771d5e5131ba0fdea91919c..1247394e4d9f49f0b912f3e5858cbc12819a3be4 100644 (file)
@@ -1,7 +1,7 @@
 /* PR middle-end/69780 - [4.9/5/6 Regression] ICE on
      __builtin_alloca_with_align with small alignment */
-/* { dg-require-effective-target alloca } */
 /* { dg-do compile } */
+/* { dg-require-effective-target alloca } */
 /* { dg-options "-Wno-long-long" } */
 
 #define CHAR_BIT  __CHAR_BIT__
index e443f48532ed8564229dcaa8626c6e2450e30a18..2c80559a34b2eb321b779bcc8c1a0039b1983fb8 100644 (file)
@@ -1,8 +1,8 @@
 /* Test gcov weak ellision.  */
 
+/* { dg-do run { target native } } */
 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
 /* { dg-require-weak "" } */
-/* { dg-do run { target native } } */
 /* { dg-additional-sources "gcovpart-13b.c" } */
 /* { dg-skip-if "weak ellision not supported" { { hppa*-*-hpux* } && { ! lp64 } } { "*" } { "" } } */
 
index 78dd7bedd766d6d288c1c96bf3729f1a0e0ae763..2bebf7e4a939347920eeb5eaac3f60c53cf4fc6c 100644 (file)
@@ -1,10 +1,10 @@
 /* Test gcov extern inline.  */
 
+/* { dg-do run { target native } } */
 /* { dg-options "-O2 -fprofile-arcs -ftest-coverage -fgnu89-inline" } */
 /* The following line arranges that Darwin has behavior like elf weak import.  */
 /* { dg-additional-options "-flat_namespace -undefined suppress" { target *-*-darwin* }  } */
 /* { 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" { powerpc-ibm-aix* } } */
 
index efd17fba91a4534d390d0a51b21bd1de99d9518c..1ec0981a5e338824d30909644ec709a7820d1038 100644 (file)
@@ -1,3 +1,31 @@
+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>
 
        Implement P0040R3, Extending memory management tools.
index 6d10bb19e166ccc54cbd3108fe748db4f5d64f26..f481115471e72af99e0809dafeb77635fd18625e 100644 (file)
@@ -15,9 +15,9 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
+// { dg-do run { xfail *-*-* } }
 // { dg-require-debug-mode "" }
 // { dg-options "-std=gnu++11" }
-// { dg-do run { xfail *-*-* } }
 
 #include <debug/string>
 
index 360f0776637f8cb8cca2f9af36ae773c3c622fc9..a72cb871f863ee8089a1e6f42ec4b81470ad32bd 100644 (file)
@@ -15,9 +15,9 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
+// { dg-do run { xfail *-*-* } }
 // { dg-require-debug-mode "" }
 // { dg-options "-std=gnu++11" }
-// { dg-do run { xfail *-*-* } }
 
 #include <debug/string>
 
index bcd548c828305a74985837d5f9951cb280d33087..fd94c78407ac040564cbcd19ad19c4227007da03 100644 (file)
@@ -17,8 +17,8 @@
 
 // 23.2.5 class vector<bool> [lib.vector.bool]
 
-// { dg-skip-if "" { powerpc64-*-freebsd* } { "*" } { "" } }
 // { dg-do run { xfail *-*-darwin8.[0-4].* } }
+// { dg-skip-if "" { powerpc64-*-freebsd* } { "*" } { "" } }
 
 #include <vector>
 #include <stdexcept>
index d0fb7fc180fbaf85e19a101dfa304b83864351ea..bb9b35e8ad84fe58a0d58005321a32179e27c61d 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <vector>
 
index ae205be41d5416124df1c7cdc47ca138ffc785ca..51ebc84041e5e25aa0b8a849ccf49decf8f8ad44 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 // PR libstdc++/60587
 
index 9b0866d57cd83f619e83ed7a9f9d4d4e02d501a3..9ee2067ed1abb94789dead6a055955272ce1ae54 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <vector>
 #include <debug/checks.h>
index aca8657d31a1b54c738348c878a076a61b0f5596..974c80a16b4b0f200168d61c9f2ffecaf79a8c89 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <vector>
 #include <debug/checks.h>
index a6c36bb2c92cb8d1783f001740cc08b424ba875c..ac4aabd553d7b9b23fea46a8a0a3f4a47e8d9c81 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <vector>
 #include <debug/checks.h>
index 723cce0c63e5bf7f561e954d3a82ceff01e6c4c2..0e51ca32514382829a25c581e2d7a7b7ad0c8a73 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <vector>
 #include <debug/checks.h>
index 24e659f662e6b0527fc2da51add127bb2f3ae3a7..5c91dadf00a83a29913af17ec34bd3923dca6ebe 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <vector>
 #include <debug/checks.h>
index 245c6bfd7b043ae45d40f546a252b94d35b21526..63b3e1adf888748562ea2cc8d3f31205d05e91ee 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <vector>
 #include <debug/checks.h>
index c43e3add476c2b46cfbc446d5f61f9b0a7c7ab86..9d09983d0400f4dcd1713c0d5b624c5a84375b80 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <vector>
 #include <debug/checks.h>
index 80b8e171ea5c548c169a156a1c4b4e8cc008c851..4d8632c8e9e72e6f1a63c2319dbc26e056ce0c40 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <vector>
 #include <debug/checks.h>
index 000643d2ee5ea9033c36a2560ec840a5688cb907..6514cca3ef5d5813770e394515d128c4559db05c 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <vector>
 #include <debug/checks.h>
index ee65e6f64a82de1f715b98cc90872a2dc9d227d0..1cb29ecf8f37316d9f01b1735b45c125ffac7608 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <vector>
 #include <debug/checks.h>
index 1554df0d97f6b43f2a6d24e284709ad61bfa8ffd..08a3170ee58a6f04e3bf0d295c28cd9d84bcdb76 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do compile }
+// { dg-require-debug-mode "" }
 
 #include <algorithm>
 
index 1ebc3bde87eb53989e913bd9f3cad9be32e1ceae..52076aaf4b8edae755c5bb321d50c8b89d51a99a 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 //
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <algorithm>
 
index e30533f7629092fdb18398c38be14079165ae22f..5bc2d99dd039c4de48531c39f7a81f9ad0b28553 100644 (file)
@@ -17,8 +17,8 @@
 
 // 25.3.6 Heap operations [lib.alg.heap.operations]
 
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <algorithm>
 #include <functional>
index 358fb90f415450cf55db53d7a009518a5e78816b..96c1ab9732760d46b9da789eea0b5a9c934b991f 100644 (file)
@@ -17,8 +17,8 @@
 
 // 25.3.6 Heap operations [lib.alg.heap.operations]
 
-// { dg-require-debug-mode "" }
 // { dg-do run { xfail *-*-* } }
+// { dg-require-debug-mode "" }
 
 #include <algorithm>
 
index 40cf7529c034bd70aeaf9c282765514e03091596..582ba35528fad51d1e79273634287e595ec5a860 100644 (file)
@@ -22,9 +22,8 @@
 // equivalent and interchangable. Currently however, cin.rdbuf()->sungetc()
 // only returns characters that were read with cin.rdbuf()->sbumpc()
 
-// { dg-require-fileio "" }
-
 // { dg-do run { xfail *-*-* } }
+// { dg-require-fileio "" }
 
 #include <iostream>
 #include <cstdio>
index d6108d5fd4b39c8ca926871a1d385099e154db25..6c4f8faad92199bcc36a21267740af60b91e1f6f 100644 (file)
@@ -1,7 +1,7 @@
+// { dg-do run { target c++11 } }
 // { dg-require-c-std "" }
 // { dg-add-options ieee }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
-// { dg-do run { target c++11 } }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
 //
index 8806a3c2b1db83e286303216658872f43da73686..31b81a693818586afc56f63ff11460eacb35a55a 100644 (file)
@@ -1,7 +1,7 @@
+// { dg-do run { target c++11 } }
 // { dg-require-c-std "" }
 // { dg-add-options ieee }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
-// { dg-do run { target c++11 } }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
 //