diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp1z/noexcept-type1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1z/noexcept-type1.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1z/noexcept-type1.C b/gcc/testsuite/g++.dg/cpp1z/noexcept-type1.C index 59c0255..00d9509 100644 --- a/gcc/testsuite/g++.dg/cpp1z/noexcept-type1.C +++ b/gcc/testsuite/g++.dg/cpp1z/noexcept-type1.C @@ -1,5 +1,5 @@ // Testcase from P0012r1 -// { dg-options -std=c++17 } +// { dg-do compile { target c++17 } } void (*p)() throw(int); // { dg-error "dynamic exception specification" } void (**pp)() noexcept = &p; // { dg-error "" } cannot convert to pointer to noexcept function |