aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Analysis/string-with-signedness.c
blob: c8e4fe55ff21bd07e7395a762d2a2b493a7fa23d (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_analyze_cc1 -Wno-incompatible-library-redeclaration -analyzer-checker=core,unix.cstring,alpha.unix.cstring -verify %s

// expected-no-diagnostics

void *strcpy(unsigned char *, unsigned char *);

unsigned char a, b;
void testUnsignedStrcpy(void) {
  strcpy(&a, &b);
}