1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-rtl-expand-details" } */
3 
4 /* Verify we PRE the strlen call, as strlen("") folds to zero.  */
5 
6 extern __SIZE_TYPE__ strlen (const char *);
7 
mystrlen(const char * s)8 __SIZE_TYPE__ mystrlen (const char *s)
9 {
10   if (!s)
11     s = "";
12   return strlen(s);
13 }
14 
15 /* { dg-final { scan-rtl-dump "PART.. = 0" "expand" } } */
16