builtins: Fix up two bugs in access_ref::inform_access [PR98721]
[gcc.git] / gcc / testsuite / gcc.dg / pr98721-2.c
1 /* PR tree-optimization/98721 */
2 /* { dg-do compile } */
3
4 int
5 foo (void)
6 {
7 return __builtin_strlen (__builtin_alloca_with_align (0, 16)); /* { dg-warning "'__builtin_strlen' reading 1 or more bytes from a region of size 0" } */
8 } /* { dg-message "source object '<unknown>' of size 0" "" { target *-*-* } .-1 } */