8 lines
294 B
C++
8 lines
294 B
C++
// RUN: %clang_cc1 -std=c++20 -Wunsafe-buffer-usage -fsafe-buffer-usage-suggestions -verify %s
|
|
|
|
// expected-no-diagnostics
|
|
|
|
typedef unsigned __darwin_size_t;
|
|
typedef __darwin_size_t size_t;
|
|
#define bzero(s, n) __builtin_bzero(s, n)
|
|
void __nosan_bzero(void *dst, size_t sz) { bzero(dst, sz); }
|