12 lines · c
1// RUN: %check_clang_tidy -expect-clang-tidy-error %s bugprone-suspicious-memset-usage %t2 3void *memset(void *, int, __SIZE_TYPE__);4void *memset(void *);5// CHECK-MESSAGES: :[[@LINE-1]]:7: error: conflicting types for 'memset'6 7void test(void) {8 // no crash9 memset(undefine);10 // CHECK-MESSAGES: :[[@LINE-1]]:10: error: use of undeclared identifier11}12