Use -Wno-deprecated for std::uncaught_exception tests.
authorJason Merrill <jason@gcc.gnu.org>
Thu, 28 Sep 2017 18:36:58 +0000 (14:36 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 28 Sep 2017 18:36:58 +0000 (14:36 -0400)
* g++.dg/eh/uncaught1.C: Pass -Wno-deprecated.
* g++.dg/eh/uncaught2.C: Pass -Wno-deprecated.
* g++.dg/eh/uncaught4.C: Pass -Wno-deprecated.
* g++.old-deja/g++.mike/eh48.C: Pass -Wno-deprecated.

From-SVN: r253262

gcc/testsuite/g++.dg/eh/uncaught1.C
gcc/testsuite/g++.dg/eh/uncaught2.C
gcc/testsuite/g++.dg/eh/uncaught4.C
gcc/testsuite/g++.old-deja/g++.mike/eh48.C

index e96af334a8ccbd8875d9610838c2cab3a1fbde17..4f05be59fd1a253ac4d20e666206d06deab82622 100644 (file)
@@ -1,6 +1,7 @@
 // PR libstdc++/10606
 // { dg-do run }
-// { dg-options "-fuse-cxa-get-exception-ptr" { target powerpc*-*-darwin* } }
+// { dg-options "-Wno-deprecated" }
+// { dg-options "-fuse-cxa-get-exception-ptr -Wno-deprecated" { target powerpc*-*-darwin* } }
 
 #include <exception>
 #include <cstdlib>
index a99b2d7f36e4803bca3fa569afe2c789657fe00a..62e4d4ded225b011fc9aed57f4b926645a7a9619 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-do compile }
 // { dg-final { scan-assembler-not "__cxa_get_exception" } }
-// { dg-options "-fno-use-cxa-get-exception-ptr" }
+// { dg-options "-fno-use-cxa-get-exception-ptr -Wno-deprecated" }
 
 #include <exception>
 #include <cstdlib>
index 227d11b330bbb35cc6e72a13b9cabe816bc0f84f..8ca2cd255cae02c11c3d2b83420e2dc514fcda86 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/41174
 // { dg-do run }
+// { dg-options "-Wno-deprecated" }
 
 #include <exception>
 
index d9caf61b430ecb8d67c1c6c805086e223759fd67..458fd0135a39eed901594ccda17d6ad8476f96d6 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
-// { dg-options "-fexceptions" }
+// { dg-options "-fexceptions -Wno-deprecated" }
 
 #include <exception>
 #include <stdlib.h>