Debian Codegraph @

gcc/testsuite/c-c++-common/ubsan/pr65367.c

raw
1 /* PR sanitizer/65367 */
2 /* { dg-do compile } */
3 /* { dg-options "-fno-tree-ccp -fno-tree-copy-prop -fno-tree-dominator-opts -fno-tree-fre -fsanitize=object-size" } */
4
5 int
6 foo (char *p)
7 {
8 return *((const char *) "") - *p;
9 }