brintos

brintos / llvm-project-archived public Read only

0
0
Text · 326 B · 989931e Raw
7 lines · cpp
1// RUN: %clang_cc1 -std=c++20 -Wunsafe-buffer-usage -fsafe-buffer-usage-suggestions -verify %s2 3typedef unsigned __darwin_size_t;4typedef __darwin_size_t size_t;5 #define bzero(s, n) __builtin_bzero(s, n)6void __nosan_bzero(void *dst, size_t sz) { bzero(dst, sz); } // expected-warning{{function '__builtin_bzero' is unsafe}}7