aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/eh/ehopt1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/eh/ehopt1.C')
-rw-r--r--gcc/testsuite/g++.dg/eh/ehopt1.C4
1 files changed, 2 insertions, 2 deletions
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