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 78fcb76fdb11..3948b66000f9 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,6 @@ // RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \ // RUN: -config="{CheckOptions: [{key: modernize-use-noexcept.ReplacementString, value: 'NOEXCEPT'}]}" \ -// RUN: -- -std=c++11 +// RUN: -- -std=c++11 -fexceptions // Example definition of NOEXCEPT -- simplified test to see if noexcept is supported. #if (__has_feature(cxx_noexcept)) diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp index 8c305e7dec14..85a83c81d072 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept-opt.cpp @@ -1,6 +1,6 @@ // RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \ // RUN: -config="{CheckOptions: [{key: modernize-use-noexcept.UseNoexceptFalse, value: 0}]}" \ -// RUN: -- -std=c++11 +// RUN: -- -std=c++11 -fexceptions class A {}; class B {}; diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp index 32d625a587d4..58c764ab90f9 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-use-noexcept.cpp @@ -1,5 +1,5 @@ // RUN: %check_clang_tidy %s modernize-use-noexcept %t -- \ -// RUN: -- -std=c++11 +// RUN: -- -std=c++11 -fexceptions class A {}; class B {};