]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Skip a number of C++ test cases for '-fno-exceptions' testing
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 7 Jun 2023 12:14:44 +0000 (14:14 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 3 Nov 2023 10:59:15 +0000 (11:59 +0100)
Running 'make check' with: 'RUNTESTFLAGS=--target_board=unix/-fno-exceptions',
'error: exception handling disabled' is triggered for C++ 'throw' etc. usage,
and per 'gcc/testsuite/lib/gcc-dg.exp:gcc-dg-prune':

    # If exceptions are disabled, mark tests expecting exceptions to be enabled
    # as unsupported.
    if { ![check_effective_target_exceptions_enabled] } {
if [regexp "(^|\n)\[^\n\]*: error: exception handling disabled" $text] {
    return "::unsupported::exception handling disabled"
}

..., which generally means:

    -PASS: [...] (test for excess errors)
    +UNSUPPORTED: [...]: exception handling disabled

However, if there are additional 'dg-error' etc. directives, these may regress
PASS -> FAIL (or similar) -- if their associated diagnostics are precluded by
'error: exception handling disabled'.  For example:

    PASS: g++.dg/cpp2a/explicit1.C    (test for errors, line 43)
    PASS: g++.dg/cpp2a/explicit1.C    (test for errors, line 47)
    [-PASS:-]{+FAIL:+} g++.dg/cpp2a/explicit1.C    (test for errors, line 50)
    [-PASS:-]{+FAIL:+} g++.dg/cpp2a/explicit1.C    (test for errors, line 51)
    PASS: g++.dg/cpp2a/explicit1.C    (test for errors, line 52)
    PASS: g++.dg/cpp2a/explicit1.C    (test for errors, line 53)
    PASS: g++.dg/cpp2a/explicit1.C    (test for errors, line 59)
    [-PASS:-]{+UNSUPPORTED:+} g++.dg/cpp2a/explicit1.C  [-(test for excess errors)-]{+: exception handling disabled+}

Specify 'dg-require-effective-target exceptions_enabled' for those test cases.

gcc/testsuite/
* g++.dg/cpp0x/catch1.C: Specify
'dg-require-effective-target exceptions_enabled'.
* g++.dg/cpp0x/constexpr-throw.C: Likewise.
* g++.dg/cpp1y/constexpr-89785-2.C: Likewise.
* g++.dg/cpp1y/constexpr-throw.C: Likewise.
* g++.dg/cpp1y/pr79393-3.C: Likewise.
* g++.dg/cpp2a/consteval-memfn1.C: Likewise.
* g++.dg/cpp2a/consteval11.C: Likewise.
* g++.dg/cpp2a/consteval34.C: Likewise.
* g++.dg/cpp2a/consteval9.C: Likewise.
* g++.dg/cpp2a/explicit1.C: Likewise.
* g++.dg/cpp2a/explicit2.C: Likewise.
* g++.dg/cpp2a/explicit5.C: Likewise.
* g++.dg/eh/builtin10.C: Likewise.
* g++.dg/eh/builtin11.C: Likewise.
* g++.dg/eh/builtin6.C: Likewise.
* g++.dg/eh/builtin7.C: Likewise.
* g++.dg/eh/builtin9.C: Likewise.
* g++.dg/eh/dtor4.C: Likewise.
* g++.dg/eh/pr42859.C: Likewise.
* g++.dg/ext/stmtexpr25.C: Likewise.
* g++.dg/ext/vla4.C: Likewise.
* g++.dg/init/placement4.C: Likewise.
* g++.dg/other/error32.C: Likewise.
* g++.dg/parse/crash55.C: Likewise.
* g++.dg/parse/pr31952-2.C: Likewise.
* g++.dg/parse/pr31952-3.C: Likewise.
* g++.dg/tm/noexcept-7.C: Likewise.
* g++.dg/torture/pr43257.C: Likewise.
* g++.dg/torture/pr56694.C: Likewise.
* g++.dg/torture/pr81659.C: Likewise.
* g++.dg/warn/Wcatch-value-1.C: Likewise.
* g++.dg/warn/Wcatch-value-2.C: Likewise.
* g++.dg/warn/Wcatch-value-3.C: Likewise.
* g++.dg/warn/Wcatch-value-3b.C: Likewise.
* g++.dg/warn/Wexceptions1.C: Likewise.
* g++.dg/warn/Wexceptions3.C: Likewise.
* g++.dg/warn/Winfinite-recursion-3.C: Likewise.
* g++.dg/warn/Wreturn-6.C: Likewise.
* g++.dg/warn/Wstringop-truncation-2.C: Likewise.
* g++.dg/warn/Wterminate1.C: Likewise.
* g++.old-deja/g++.eh/catch1.C: Likewise.
* g++.old-deja/g++.eh/catch10.C: Likewise.
* g++.old-deja/g++.eh/cond1.C: Likewise.
* g++.old-deja/g++.eh/ctor1.C: Likewise.
* g++.old-deja/g++.eh/throw2.C: Likewise.
* g++.old-deja/g++.other/cond5.C: Likewise.

46 files changed:
gcc/testsuite/g++.dg/cpp0x/catch1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-throw.C
gcc/testsuite/g++.dg/cpp1y/constexpr-89785-2.C
gcc/testsuite/g++.dg/cpp1y/constexpr-throw.C
gcc/testsuite/g++.dg/cpp1y/pr79393-3.C
gcc/testsuite/g++.dg/cpp2a/consteval-memfn1.C
gcc/testsuite/g++.dg/cpp2a/consteval11.C
gcc/testsuite/g++.dg/cpp2a/consteval34.C
gcc/testsuite/g++.dg/cpp2a/consteval9.C
gcc/testsuite/g++.dg/cpp2a/explicit1.C
gcc/testsuite/g++.dg/cpp2a/explicit2.C
gcc/testsuite/g++.dg/cpp2a/explicit5.C
gcc/testsuite/g++.dg/eh/builtin10.C
gcc/testsuite/g++.dg/eh/builtin11.C
gcc/testsuite/g++.dg/eh/builtin6.C
gcc/testsuite/g++.dg/eh/builtin7.C
gcc/testsuite/g++.dg/eh/builtin9.C
gcc/testsuite/g++.dg/eh/dtor4.C
gcc/testsuite/g++.dg/eh/pr42859.C
gcc/testsuite/g++.dg/ext/stmtexpr25.C
gcc/testsuite/g++.dg/ext/vla4.C
gcc/testsuite/g++.dg/init/placement4.C
gcc/testsuite/g++.dg/other/error32.C
gcc/testsuite/g++.dg/parse/crash55.C
gcc/testsuite/g++.dg/parse/pr31952-2.C
gcc/testsuite/g++.dg/parse/pr31952-3.C
gcc/testsuite/g++.dg/tm/noexcept-7.C
gcc/testsuite/g++.dg/torture/pr43257.C
gcc/testsuite/g++.dg/torture/pr56694.C
gcc/testsuite/g++.dg/torture/pr81659.C
gcc/testsuite/g++.dg/warn/Wcatch-value-1.C
gcc/testsuite/g++.dg/warn/Wcatch-value-2.C
gcc/testsuite/g++.dg/warn/Wcatch-value-3.C
gcc/testsuite/g++.dg/warn/Wcatch-value-3b.C
gcc/testsuite/g++.dg/warn/Wexceptions1.C
gcc/testsuite/g++.dg/warn/Wexceptions3.C
gcc/testsuite/g++.dg/warn/Winfinite-recursion-3.C
gcc/testsuite/g++.dg/warn/Wreturn-6.C
gcc/testsuite/g++.dg/warn/Wstringop-truncation-2.C
gcc/testsuite/g++.dg/warn/Wterminate1.C
gcc/testsuite/g++.old-deja/g++.eh/catch1.C
gcc/testsuite/g++.old-deja/g++.eh/catch10.C
gcc/testsuite/g++.old-deja/g++.eh/cond1.C
gcc/testsuite/g++.old-deja/g++.eh/ctor1.C
gcc/testsuite/g++.old-deja/g++.eh/throw2.C
gcc/testsuite/g++.old-deja/g++.other/cond5.C

index 81778ea780764364cae5ba5255f3482f6b6f959d..733bd560180ef791d99ba2280f3b88f1da4feef4 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/53371
 // { dg-do compile { target c++11 } }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 struct Abs
 {
index 5666629acae9fba6dca8c902fa823449075d3636..9c49fa4e9e85131b0cddfccc53c58e79ee9c495e 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 constexpr int may_throw(bool decide) {
        return decide ? 42 : throw -1; // { dg-error "throw" }
index 7afd9d24e983ba9089f6e62e1f5661e4cf631087..47c0d4daa60706fccf5370e6ba2e54e0d02840d8 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/89785
 // { dg-do compile { target c++14 } }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 constexpr int
 foo (int x)
index 3592874468693aed51ceaab188494ddc1630d735..b5fa6caeb576a755547c6a6908795f4da3f583c1 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++14 } }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 constexpr void f1() {
   if (false)
index 3c73cbbb65936a06a03449113f0dbe63a94febf5..6d9b77ae94607d96109ffec4ab5588e8307a0d9d 100644 (file)
@@ -1,5 +1,6 @@
 // pr c++/79393
 // { dg-do compile { target c++14 } }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 struct A 
 {
index 63f4f1d526a236976e493cfcf9b497655d96ffd6..46eed13446d67f5b8c82041f0e9193503c455015 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/99895
 // { dg-do compile { target c++20 } }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 struct fixed_string {
   consteval int size(int n) const {
index 091127eabbfa2a9154b27307e41e692b31382289..05cecea4502884cf4d3cfe9486310a798cfd6c7a 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-std=c++2a" }
 
 consteval int bar (int i) { if (i != 1) throw 1; return 0; }   // { dg-error "is not a constant expression" }
index d5e2d1dc5d21ccb0917bed7bc3d3759b9317ab1c..068827ba516e23471f8d1db892fd594adf1b36ce 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 consteval int bar (int i) { if (i != 1) throw 1; return 0; }   // { dg-error "is not a constant expression" }
 
index aa75ba37849636542d35b9fc9ddd373f0716a77e..051a3d4e3558b004c313168ebfa5889e4672d639 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-std=c++2a" }
 
 consteval int bar (int i) { if (i != 1) throw 1; return 0; }   // { dg-error "is not a constant expression" }
index b39f90f3397fbbe208d6090e7529626329f5e216..290f16c2b7fad78a87bc683d392f5338c41a9b2a 100644 (file)
@@ -1,5 +1,6 @@
 // P0892R2
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-std=c++2a" }
 
 constexpr int fn0 () { return 0; }
index 7d1748c0f5e3def47197295cc45cb05d8edda96f..95651436eb791f5a46c8c1f680934f7eaed08e66 100644 (file)
@@ -1,5 +1,6 @@
 // P0892R2
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-std=c++2a" }
 
 int foo() { return 42; }
index 70a106f1fcb25d9c4a353858ddb5966c3bc8a100..00d3372bfedc1874bbafbcf341660399f460bc25 100644 (file)
@@ -1,5 +1,6 @@
 // P0892R2
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-std=c++2a" }
 
 constexpr int fn0 () { return 0; }
index 6c34f1f6d5cd5bddcbf687a2fd56137ea533c31b..6148e65e35a8e3cf81c37503accb7098e6389403 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/88482
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 extern "C" void __cxa_throw (void *, void *, void (*) (void *));
 extern "C" float __cxa_get_exception_ptr (void *) throw ();    // { dg-message "previous declaration" }
index abc8c1af535aa4ea4c05b3411b21e10fe8d94fec..10cf0859b46d8d3911dad0ed33d8bd062848296a 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/88482
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 extern "C" void __cxa_throw (float, void *, void (*) (void *));        // { dg-message "previous declaration" }
 extern "C" void *__cxa_get_exception_ptr (void *) throw ();
index c05abdc8f51b6672a629405d84a944f0a96fd6ee..b3b520650650752d3ea6ef8fad4ff6b30b5315a8 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/88482
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 float __cxa_throw;             // { dg-message "previous declaration" }
 extern "C" void *__cxa_get_exception_ptr (void *);
index 0ef279d09c1b39e0514dbdeab75e29a4f2da2b0c..118e145ed3881895f2e3ce846000c9768ae42170 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/88482
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 extern "C" void __cxa_throw (void *, void *, void (*) (void *));
 int __cxa_get_exception_ptr;           // { dg-message "previous declaration" }
index 591a622630ce2dc3176eb9edcb5b0f7cf86fa95b..a24d248003b6f43cb36bb202d6f290e01a8c26a9 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/88482
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 extern "C" int __cxa_throw (void *, void *, void (*) (void *));        // { dg-message "previous declaration" }
 extern "C" void *__cxa_get_exception_ptr (void *) throw ();
index 6c0e804fe8a6608d270ee22708e405572d193b20..daf6d926324074ce7485379ad054d701637b0d6f 100644 (file)
@@ -1,5 +1,7 @@
 // PR c++/109172
 
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
+
 class Demo
 {
   ~Demo();
index 0de91409c833b48a41e6afb3f30eedf7b2350142..5533869190bfe574afa8280da4f3861b10dcfb37 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 void start (void);
 void
index 79c40fc61c43774bdb500e45cc9961acc17100ac..7326571dddf9a09799605548cd8d573e07a6ed95 100644 (file)
@@ -1,6 +1,7 @@
 // PR c++/81073
 // { dg-options "" }
 // { dg-do compile { target c++11 } }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 struct test { const int *addr; };
 
index e96f2735f8ac4f7787ac7ec2464c7d08edaaa0a9..d4686d450ad59c9d9ebe9d2f4c1caafb806a4830 100644 (file)
@@ -1,4 +1,5 @@
 // PR c++/29318
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "" }
 
 #include <typeinfo>
index 3cfe27d63e634178cc34ac267b3eb9d6fca3f5e3..6e755f93d211dc5875dae40069950ebf2bfa66fa 100644 (file)
@@ -1,5 +1,7 @@
 // PR c++/34158
 
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
+
 typedef __SIZE_TYPE__ size_t;
 extern "C" void* malloc (size_t);
 extern "C" void free (void *);
index 56d3b7aec8b1d5e8e4b32ee5fa051cceb5062269..4af7f777e5a7da32fc76e69a318f2daa6623de42 100644 (file)
@@ -1,4 +1,5 @@
 // PR c++/33492
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "" }
 
 void foo()
index 2e88c476fc7aafd2bc00ad655c01c483d26d03db..c7b7de041acc0776d1f51ef07c694627b7975bea 100644 (file)
@@ -1,5 +1,7 @@
 // PR c++/42038
 
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
+
 extern int __cxa_begin_catch;  // { dg-message "previous declaration" }
 
 void f(void)
index f09bcab1b85206402c222425150db5786a6e594a..bf666b7ca3efe1a639abf4d55b61fbb283bc2286 100644 (file)
@@ -1,5 +1,7 @@
 // PR c++/31952
 
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
+
 void
 f0()
 {
index b589097d36db64451da5795a795f725c66831988..d57c92611fd297ad7564585c60ee7c92ca59ad7f 100644 (file)
@@ -1,5 +1,7 @@
 // PR c++/31952
 
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
+
 int
 f0 (int bar)     // { dg-message "previously" }
 try
index bfa675c987fb9ee08933242c3fab237e79f35c82..f21eaf5c8e75490825b5a85d6a5638294c701425 100644 (file)
@@ -1,4 +1,5 @@
 // FIXME the TS says atomic_noexcept calls abort, not terminate.
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-fgnu-tm" }
 
 void f()
index fab5f09c31a3bd194cc5cc25cbfb74a22b70be4d..b58cf097caa79c8bbf907a305440d75823978b51 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do assemble } */
+/* Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.  */
 
 class A {};
 class B {};
index 774bac4c61547c9411d70ba1255d3cc41f191fc9..dc4dd905afd4b00072019f9c597fe1a07a948dde 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-fopenmp" }
 // { dg-require-effective-target fopenmp }
 
index 074099be6fc7060d8d9451d0c3ce40ce99c2b63d..cfaa56fd86880b1040447c13e208bb836bf3c130 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 void
 a (int b)
index a84b337b939cacc8bcadeee6c3af5e92e654eb9f..835b2c7417e62c744e98a6f4e6f2bc33233798d4 100644 (file)
@@ -1,3 +1,4 @@
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-Wcatch-value=1" }
 
 struct A { virtual ~A() {} };
index e20719c155bee4d0c4d53953be62cd65c90c086b..9c6e93cfa5f68db34be15edc387898626f25d137 100644 (file)
@@ -1,3 +1,4 @@
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-Wcatch-value=2" }
 
 struct A { virtual ~A() {} };
index c91a3c0859045f95a6c2fc44c64388797f2532df..62881025b71e8a29ccbd65dc204281fc3360bf62 100644 (file)
@@ -1,3 +1,4 @@
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-Wcatch-value=3" }
 
 struct A { virtual ~A() {} };
index cb9af4a60192d38c32482084d8ce7dc2c8d80bf9..2d37f89acfe052ea56d24e67adf9312d192f40b2 100644 (file)
@@ -1,3 +1,4 @@
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-Wcatch-value=3" }
 
 struct A { virtual ~A() {} };
index af140fd0dc2cae32253add756aaa649dd3d5158e..557f01b3c7ad9597239103d6a864bfe03702968e 100644 (file)
@@ -1,5 +1,7 @@
 // PR c++/97675
 
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
+
 struct Base { };
 struct Child : Base { };
 int main() {
index 97fda9dbd91fec473fdfb0b265cb0214fbe88124..08d40bbf96ac9da300457c40275649d788a49263 100644 (file)
@@ -1,5 +1,7 @@
 // PR c++/81660
 
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
+
 void bar (int);
 
 void
index 166e6d5790d0dbab7b12fca6119d2bb1c52ffb78..ee0be59d723bb9bd38047308ac52065cffa59061 100644 (file)
@@ -1,5 +1,6 @@
 /* PR middle-end/88232 - Please implement -Winfinite-recursion
    { dg-do compile }
+   Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
    { dg-options "-Wall -Winfinite-recursion" } */
 
 typedef __SIZE_TYPE__ size_t;
index 85fef0e16dff847775193bb62ae64a2c6fa290c8..7372e88e8ca3f902fab1321c12e07f5f4d28b9af 100644 (file)
@@ -1,5 +1,7 @@
 // PR c++/107310
 
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
+
 struct f
 {
   ~f();
index ebbd44307d9ac04621de8660f7799d7567328519..39827a2aceec77673f86b48f859e6fe25d5ff124 100644 (file)
@@ -3,6 +3,7 @@
 // Compile with -g to verify the warning deals properly with debug
 // statements.
 // { dg-do compile }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-O2 -Wstringop-truncation -g" }
 
 extern "C" char* strncpy (char*, const char*, __SIZE_TYPE__);
index affb48d3e8ac31cea1ad15189fc62dbd2d7c5046..ec0a67b60adc9f76d282578fd06f6534ffe6dd58 100644 (file)
@@ -1,6 +1,7 @@
 // In C++98 mode this gets a -Wc++11-compat warning, in C++11 mode a
 // -Wterminate warning.
 
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-Wall" }
 
 struct A
index 67779d945eafd8217da0bf279289a2def339dbf2..a9a26d54437b057b5bdcc615f781a6710eb6f6d8 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // 
 // Copyright (C) 1999 Free Software Foundation, Inc.
 // Contributed by Nathan Sidwell 6 Jun 1999 <nathan@acm.org>
index 7cc609645a23099d73219b0bf403cd41b89c9526..19dfd87430bcd8616d84377273974c2f3bb1368f 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // Test that we notice unfortunate handler ordering.
 
 struct A { };
index fe6d4296ab5036d583723bb1a4ab63cb86fe5ccd..18c024d29f9dae0ef7a9ab8c258f5fd8eb4eb601 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 // Copyright (C) 1999, 2000 Free Software Foundation, Inc.
 // Contributed by Nathan Sidwell 11 Apr 1999 <nathan@acm.org>
index cc39ac3953fa34627383f3bfc1660d1f5127cee9..1a14f7178beba7d3d90283f5b6bb3dd1101a3993 100644 (file)
@@ -1,4 +1,6 @@
 // { dg-do assemble  }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
+
 struct A
 {
   A();
index 957c200f8af7c4ccefd75a446834690778498c03..7302dac6078245e3b5cf764d045adb4396b9abf6 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 
 // Submitted by Sebastian Ritterbusch <uabp@rz.uni-karlsruhe.de>
 
index 0d2baf9edf7f45abfdb8c7ece437643bbcef8c1d..6e9ac1bfc1d315ea70f89913db089102ac702c78 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
 // { dg-options "-W -pedantic -ansi" }
 
 // Copyright (C) 1999, 2000 Free Software Foundation, Inc.