Clang Project

clang_source_code/test/Analysis/string-with-signedness.c
1// RUN: %clang_analyze_cc1 -Wno-incompatible-library-redeclaration -analyzer-checker=core,unix.cstring,alpha.unix.cstring -verify %s
2
3// expected-no-diagnostics
4
5void *strcpy(unsigned char *, unsigned char *);
6
7unsigned char a, b;
8void testUnsignedStrcpy() {
9  strcpy(&a, &b);
10}
11