aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr98721-2.c
blob: c8ca542352fcd89d20cc14c1dfe2caf33ad04840 (plain)
1
2
3
4
5
6
7
8
/* PR tree-optimization/98721 */
/* { dg-do compile } */

int
foo (void)
{
  return __builtin_strlen (__builtin_alloca_with_align (0, 16));	/* { dg-warning "'__builtin_strlen' reading 1 or more bytes from a region of size 0" } */
}	/* { dg-message "source object '<unknown>' of size 0" "" { target *-*-* } .-1 } */