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
This commit is contained in:
parent
de34985caa
commit
872c95c26f
|
@ -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
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
// RUN: %python %S/check_clang_tidy.py %s misc-new-delete-overloads %t -- -std=c++14
|
||||
|
||||
typedef unsigned int size_t;
|
||||
|
||||
struct S {
|
||||
// CHECK-MESSAGES: :[[@LINE+1]]:9: warning: declaration of 'operator new' has no matching declaration of 'operator delete' at the same scope [misc-new-delete-overloads]
|
||||
void *operator new(size_t size) noexcept;
|
||||
|
|
Loading…
Reference in New Issue