summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/clang-analyzer-security.insecureAPI.strcpy.cpp
blob: 41713adb4eb6da7708a357502458a43785f63abf (plain)
1
2
3
4
5
6
7
#include <string.h>
void test() {
  char x[4];
  char *y = "abcd";

  strcpy(x, y);
}