diff --git a/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads.cpp b/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads.cpp index 2cb23b88dd2f..d893ada84f5a 100644 --- a/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads.cpp +++ b/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads.cpp @@ -10,7 +10,7 @@ struct S { }; // CHECK-MESSAGES: :[[@LINE+1]]:7: warning: declaration of 'operator new' has no matching declaration of 'operator delete' at the same scope -void *operator new(size_t size) noexcept; +void *operator new(size_t size) noexcept(false); struct T { // Sized deallocations are not enabled by default, and so this new/delete pair