aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/ubsan/pr65367.c
blob: a98d797e9f6a9328bfb4ee47b1ca5b980d30faa3 (plain)
1
2
3
4
5
6
7
8
9
/* PR sanitizer/65367 */
/* { dg-do compile } */
/* { dg-options "-fno-tree-ccp -fno-tree-copy-prop -fno-tree-dominator-opts -fno-tree-fre -fsanitize=object-size" } */

int
foo (char *p)
{
  return *((const char *) "") - *p;
}