Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / strlenopt-1f.c
blobe7d817f9da2209acad04d8bb666f7d758778f231
1 /* This test needs runtime that provides __*_chk functions. */
2 /* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinu* } } */
3 /* { dg-options "-O2 -fdump-tree-strlen" } */
5 #define FORTIFY_SOURCE 2
6 #include "strlenopt-1.c"
8 /* { dg-final { scan-tree-dump-times "strlen \\(" 2 "strlen1" } } */
9 /* { dg-final { scan-tree-dump-times "__memcpy_chk \\(" 0 "strlen1" } } */
10 /* { dg-final { scan-tree-dump-times "__strcpy_chk \\(" 0 "strlen1" } } */
11 /* { dg-final { scan-tree-dump-times "__strcat_chk \\(" 0 "strlen1" } } */
12 /* { dg-final { scan-tree-dump-times "strchr \\(" 0 "strlen1" } } */
13 /* { dg-final { scan-tree-dump-times "__stpcpy_chk \\(" 0 "strlen1" } } */
14 /* { dg-final { scan-tree-dump-times "memcpy \\(" 4 "strlen1" } } */
15 /* { dg-final { scan-tree-dump-times "strcpy \\(" 0 "strlen1" } } */
16 /* { dg-final { scan-tree-dump-times "strcat \\(" 0 "strlen1" } } */
17 /* { dg-final { scan-tree-dump-times "stpcpy \\(" 0 "strlen1" } } */