Debian Codegraph @

gcc/testsuite/gdc.dg/analyzer/pr111537.d

raw
1 // { dg-do compile }
2 import core.stdc.string;
3 void main()
4 {
5 char[5] arr;
6 strcpy(arr.ptr, "hello world"); // { dg-warning "stack-based buffer overflow" }
7 }