summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp b/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp
index 992c2fdf9ed..48b0578927d 100644
--- a/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp
+++ b/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp
@@ -1,5 +1,7 @@
// RUN: %python %S/check_clang_tidy.py %s misc-new-delete-overloads %t -- -std=c++14 -fsized-deallocation
+typedef unsigned int size_t;
+
struct S {
// CHECK-MESSAGES: :[[@LINE+1]]:8: warning: declaration of 'operator delete' has no matching declaration of 'operator new' at the same scope [misc-new-delete-overloads]
void operator delete(void *ptr, size_t) noexcept; // not a placement delete
OpenPOWER on IntegriCloud