1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-strlen" } */
3
g(void)4 unsigned g (void)
5 {
6 char d[8];
7 const char s[] = "0123";
8 __builtin_memcpy (d, s, sizeof s);
9 return __builtin_strlen (d);
10 }
11
12 /* { dg-final { scan-tree-dump-not "__builtin_strlen" "strlen" } } */
13