diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/eh/shadow1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/eh/shadow1.C | 12 |
1 files changed, 6 insertions, 6 deletions
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) |