diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/eh')
-rw-r--r-- | gcc/testsuite/g++.dg/eh/async-unwind2.C | 8 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/cond4.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/delete1.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/ehopt1.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/forced4.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/init-temp2.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/pr38662.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/pr41819.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/shadow1.C | 12 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/spec2.C | 20 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/spec3.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/spec7.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/spec8.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/spec9.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/template1.C | 2 |
15 files changed, 36 insertions, 36 deletions
diff --git a/gcc/testsuite/g++.dg/eh/async-unwind2.C b/gcc/testsuite/g++.dg/eh/async-unwind2.C index 0f84901..70d3871 100644 --- a/gcc/testsuite/g++.dg/eh/async-unwind2.C +++ b/gcc/testsuite/g++.dg/eh/async-unwind2.C @@ -89,12 +89,12 @@ struct Z; X <V> baz1 (const S &) #if __cplusplus <= 201402L -throw (E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } +throw (E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif ; X <Z> baz2 (const X <Z> &) #if __cplusplus <= 201402L -throw (E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } +throw (E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif ; @@ -122,7 +122,7 @@ template <typename T> T *X<T>::operator -> () const X <V> baz1 (const S &) #if __cplusplus <= 201402L -throw (E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } +throw (E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif { return X<V> (); @@ -138,7 +138,7 @@ E::~E () X <Z> baz2 (const X <Z> &) #if __cplusplus <= 201402L -throw (E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } +throw (E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif { throw E (); diff --git a/gcc/testsuite/g++.dg/eh/cond4.C b/gcc/testsuite/g++.dg/eh/cond4.C index 17e9149..68fb65c 100644 --- a/gcc/testsuite/g++.dg/eh/cond4.C +++ b/gcc/testsuite/g++.dg/eh/cond4.C @@ -14,7 +14,7 @@ struct A { A(int) { } ~A() #if __cplusplus <= 201402L - throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } + throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #else noexcept(false) #endif diff --git a/gcc/testsuite/g++.dg/eh/delete1.C b/gcc/testsuite/g++.dg/eh/delete1.C index 46b5307..1727a74 100644 --- a/gcc/testsuite/g++.dg/eh/delete1.C +++ b/gcc/testsuite/g++.dg/eh/delete1.C @@ -14,7 +14,7 @@ void operator delete (void *) throw () struct Foo { ~Foo() #if __cplusplus <= 201402L - throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } + throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #else noexcept(false) #endif @@ -28,7 +28,7 @@ struct Baz { } virtual ~Baz() #if __cplusplus <= 201402L - throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } + throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #else noexcept(false) #endif diff --git a/gcc/testsuite/g++.dg/eh/ehopt1.C b/gcc/testsuite/g++.dg/eh/ehopt1.C index 852d324..9e713ac 100644 --- a/gcc/testsuite/g++.dg/eh/ehopt1.C +++ b/gcc/testsuite/g++.dg/eh/ehopt1.C @@ -17,7 +17,7 @@ public: A(const A&) { ++count; if (b) throw 1; } ~A() #if __cplusplus <= 201402L - throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } + throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #else noexcept(false) #endif @@ -34,7 +34,7 @@ public: A(const B&) { if (b) throw 1; } ~A() #if __cplusplus <= 201402L - throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } + throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #else noexcept(false) #endif diff --git a/gcc/testsuite/g++.dg/eh/forced4.C b/gcc/testsuite/g++.dg/eh/forced4.C index 96408d2..519d8ca 100644 --- a/gcc/testsuite/g++.dg/eh/forced4.C +++ b/gcc/testsuite/g++.dg/eh/forced4.C @@ -40,7 +40,7 @@ force_unwind () static void doit () #if __cplusplus <= 201402L -throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } +throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif { force_unwind (); diff --git a/gcc/testsuite/g++.dg/eh/init-temp2.C b/gcc/testsuite/g++.dg/eh/init-temp2.C index 127883a..8db0ace 100644 --- a/gcc/testsuite/g++.dg/eh/init-temp2.C +++ b/gcc/testsuite/g++.dg/eh/init-temp2.C @@ -10,7 +10,7 @@ public: ~AutoPtr() #if __cplusplus <= 201402L - throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } + throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #else noexcept(false) #endif @@ -22,7 +22,7 @@ struct A A() { } ~A() #if __cplusplus <= 201402L - throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } + throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #else noexcept(false) #endif @@ -33,7 +33,7 @@ struct B { virtual ~B() #if __cplusplus <= 201402L - throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } + throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #else noexcept(false) #endif diff --git a/gcc/testsuite/g++.dg/eh/pr38662.C b/gcc/testsuite/g++.dg/eh/pr38662.C index be3adbbd9..4a554aa 100644 --- a/gcc/testsuite/g++.dg/eh/pr38662.C +++ b/gcc/testsuite/g++.dg/eh/pr38662.C @@ -4,7 +4,7 @@ class E { }; class T { int foo(bool a) #if __cplusplus <= 201402L - throw (E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } + throw (E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif __attribute__((regparm(1))); int bar(bool b) __attribute__((regparm(1))); diff --git a/gcc/testsuite/g++.dg/eh/pr41819.C b/gcc/testsuite/g++.dg/eh/pr41819.C index 61c6572..adafb32 100644 --- a/gcc/testsuite/g++.dg/eh/pr41819.C +++ b/gcc/testsuite/g++.dg/eh/pr41819.C @@ -17,7 +17,7 @@ void f1() void f2() #if __cplusplus <= 201402L -throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } +throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif { bar(); diff --git a/gcc/testsuite/g++.dg/eh/shadow1.C b/gcc/testsuite/g++.dg/eh/shadow1.C index b96f65a..f0de449 100644 --- a/gcc/testsuite/g++.dg/eh/shadow1.C +++ b/gcc/testsuite/g++.dg/eh/shadow1.C @@ -13,14 +13,14 @@ struct D : private B friend class E; static B *baz (D *); - virtual void V () throw (B); // { dg-error "overriding" "" { target { ! c++1z } } } -}; // { dg-error "dynamic exception specification" "" { target c++1z } .-1 } - // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } .-2 } + virtual void V () throw (B); // { dg-error "overriding" "" { target { ! c++17 } } } +}; // { dg-error "dynamic exception specification" "" { target c++17 } .-1 } + // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-2 } struct E : public D { - virtual void V () throw (D); // { dg-error "looser throw" "" { target { ! c++1z } } } -}; // { dg-error "dynamic exception specification" "" { target c++1z } .-1 } - // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } .-2 } + virtual void V () throw (D); // { dg-error "looser throw" "" { target { ! c++17 } } } +}; // { dg-error "dynamic exception specification" "" { target c++17 } .-1 } + // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-2 } B* foo (D *); B *D::baz (D *p) diff --git a/gcc/testsuite/g++.dg/eh/spec2.C b/gcc/testsuite/g++.dg/eh/spec2.C index 0f51264..2cca82a 100644 --- a/gcc/testsuite/g++.dg/eh/spec2.C +++ b/gcc/testsuite/g++.dg/eh/spec2.C @@ -3,15 +3,15 @@ struct S { void f (void); }; typedef void f1 (void) throw (int); // { dg-error "exception" "" { target c++14_down } } - // { dg-error "dynamic exception specification" "" { target c++1z } .-1 } - // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } .-2 } + // { dg-error "dynamic exception specification" "" { target c++17 } .-1 } + // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-2 } typedef void (*f2) (void) throw (int); // { dg-error "exception" "" { target c++14_down } } - // { dg-error "dynamic exception specification" "" { target c++1z } .-1 } - // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } .-2 } + // { dg-error "dynamic exception specification" "" { target c++17 } .-1 } + // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-2 } typedef void (S::*f3) (void) throw (int); // { dg-error "exception" "" { target c++14_down } } - // { dg-error "dynamic exception specification" "" { target c++1z } .-1 } - // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } .-2 } -void (*f4) (void) throw (int); // { dg-error "dynamic exception specification" "" { target c++1z } } - // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } .-1 } -void (S::*f5) (void) throw (int); // { dg-error "dynamic exception specification" "" { target c++1z } } - // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } .-1 } + // { dg-error "dynamic exception specification" "" { target c++17 } .-1 } + // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-2 } +void (*f4) (void) throw (int); // { dg-error "dynamic exception specification" "" { target c++17 } } + // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-1 } +void (S::*f5) (void) throw (int); // { dg-error "dynamic exception specification" "" { target c++17 } } + // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-1 } diff --git a/gcc/testsuite/g++.dg/eh/spec3.C b/gcc/testsuite/g++.dg/eh/spec3.C index 49bbdc3..5d178b8 100644 --- a/gcc/testsuite/g++.dg/eh/spec3.C +++ b/gcc/testsuite/g++.dg/eh/spec3.C @@ -14,7 +14,7 @@ struct B {}; void func() #if __cplusplus <= 201402L -throw (B,A) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } +throw (B,A) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif { throw A(); diff --git a/gcc/testsuite/g++.dg/eh/spec7.C b/gcc/testsuite/g++.dg/eh/spec7.C index 37efedc..8a1683d 100644 --- a/gcc/testsuite/g++.dg/eh/spec7.C +++ b/gcc/testsuite/g++.dg/eh/spec7.C @@ -21,7 +21,7 @@ struct D : public B { struct Raiser { Raiser() #if __cplusplus <= 201402L - throw( int ) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } + throw( int ) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif {throw 1;}; } raiser; diff --git a/gcc/testsuite/g++.dg/eh/spec8.C b/gcc/testsuite/g++.dg/eh/spec8.C index 8967e8c..da8ed93 100644 --- a/gcc/testsuite/g++.dg/eh/spec8.C +++ b/gcc/testsuite/g++.dg/eh/spec8.C @@ -4,7 +4,7 @@ struct exception {}; template <typename T> void foo() throw(exception); // { dg-message "declaration" } - // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } .-1 } + // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-1 } template <typename T> void foo(); // { dg-error "exception" } struct bar diff --git a/gcc/testsuite/g++.dg/eh/spec9.C b/gcc/testsuite/g++.dg/eh/spec9.C index cceb98f..84d95fc 100644 --- a/gcc/testsuite/g++.dg/eh/spec9.C +++ b/gcc/testsuite/g++.dg/eh/spec9.C @@ -6,7 +6,7 @@ IntArray i; void test_array() #if __cplusplus <= 201402L -throw (IntArray) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } +throw (IntArray) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif { throw i; diff --git a/gcc/testsuite/g++.dg/eh/template1.C b/gcc/testsuite/g++.dg/eh/template1.C index fb471b2..b4de8d6 100644 --- a/gcc/testsuite/g++.dg/eh/template1.C +++ b/gcc/testsuite/g++.dg/eh/template1.C @@ -19,7 +19,7 @@ struct C typedef typename D::E E; void f() #if __cplusplus <= 201402L - throw(E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } } + throw(E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif { throw E(); } }; |