diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2015-09-29 13:20:26 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2015-09-29 13:20:26 +0000 |
commit | 872c95c26f390004d3c9875f69705702539aef89 (patch) | |
tree | fb9e1fa903532a5b9469d8cded27abe0a235fab5 /clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp | |
parent | de34985caae79ce7d125cd55fa634e74aa04427d (diff) | |
download | bcm5719-llvm-872c95c26f390004d3c9875f69705702539aef89.tar.gz bcm5719-llvm-872c95c26f390004d3c9875f69705702539aef89.zip |
Hopefully silencing some built bot warnings. Note, this should be unsigned long instead of unsigned int, but then *other* builds start to fail because of duplicate redefinitions of size_t.
llvm-svn: 248792
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.cpp | 2 |
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 |