diff options
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp index 3948b66000f..77b59cf51df 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-macro.cpp @@ -1,6 +1,8 @@ -// RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \ +// RUN: %check_clang_tidy -std=c++11,c++14 %s modernize-use-noexcept %t -- \ // RUN: -config="{CheckOptions: [{key: modernize-use-noexcept.ReplacementString, value: 'NOEXCEPT'}]}" \ -// RUN: -- -std=c++11 -fexceptions +// RUN: -- -fexceptions +// This test is not run in C++17 or later because dynamic exception +// specifications were removed in C++17. // Example definition of NOEXCEPT -- simplified test to see if noexcept is supported. #if (__has_feature(cxx_noexcept)) |