blob: ad0af42caca806d9ebfc485624a2de0dae0b619d [file] [log] [blame]
/* PR middle-end/78858 */
/* { dg-do compile } */
/* { dg-options "-fsanitize=undefined -Wnonnull" } */
void
foo (char **x, const char *y)
{
*x = (char *) __builtin_malloc (__builtin_strlen (y) + 1); /* { dg-bogus "argument 1 null where non-null expected" } */
__builtin_strcpy (*x, y);
}