Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / strlenopt-22g.c
blob6ee6bef63a10f3f0d6bbd383a28c5ee9dba00c97
1 /* This test needs runtime that provides stpcpy function. */
2 /* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
3 /* { dg-options "-O2 -fdump-tree-strlen" } */
5 #define USE_GNU
6 #include "strlenopt-22.c"
8 /* { dg-final { scan-tree-dump-times "strlen \\(" 1 "strlen1" } } */
9 /* { dg-final { scan-tree-dump-times "memcpy \\(" 1 "strlen1" } } */
10 /* { dg-final { scan-tree-dump-times "strcpy \\(" 0 "strlen1" } } */
11 /* { dg-final { scan-tree-dump-times "strcat \\(" 0 "strlen1" } } */
12 /* { dg-final { scan-tree-dump-times "strchr \\(" 0 "strlen1" } } */
13 /* { dg-final { scan-tree-dump-times "stpcpy \\(" 1 "strlen1" } } */