blob: 67ec3100dacf106ac729bc3f0d5052002bef8604 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-rtl-expand-details" } */
/* Verify we PRE the strlen call, as strlen("") folds to zero. */
extern __SIZE_TYPE__ strlen (const char *);
__SIZE_TYPE__ mystrlen (const char *s)
{
if (!s)
s = "";
return strlen(s);
}
/* { dg-final { scan-rtl-dump "PART.. = 0" "expand" } } */