URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
689 |
jeremybenn |
/* This test needs runtime that provides __*_chk functions. */
|
2 |
|
|
/* { dg-do run { target *-*-linux* } } */
|
3 |
|
|
/* { dg-options "-O2 -fdump-tree-strlen" } */
|
4 |
|
|
|
5 |
|
|
#define FORTIFY_SOURCE 2
|
6 |
|
|
#include "strlenopt-2.c"
|
7 |
|
|
|
8 |
|
|
/* { dg-final { scan-tree-dump-times "strlen \\(" 2 "strlen" } } */
|
9 |
|
|
/* { dg-final { scan-tree-dump-times "__memcpy_chk \\(" 5 "strlen" } } */
|
10 |
|
|
/* { dg-final { scan-tree-dump-times "__strcpy_chk \\(" 0 "strlen" } } */
|
11 |
|
|
/* { dg-final { scan-tree-dump-times "__strcat_chk \\(" 0 "strlen" } } */
|
12 |
|
|
/* { dg-final { scan-tree-dump-times "strchr \\(" 0 "strlen" } } */
|
13 |
|
|
/* { dg-final { scan-tree-dump-times "__stpcpy_chk \\(" 0 "strlen" } } */
|
14 |
|
|
/* { dg-final { scan-tree-dump-times "memcpy \\(" 0 "strlen" } } */
|
15 |
|
|
/* { dg-final { scan-tree-dump-times "strcpy \\(" 0 "strlen" } } */
|
16 |
|
|
/* { dg-final { scan-tree-dump-times "strcat \\(" 0 "strlen" } } */
|
17 |
|
|
/* { dg-final { scan-tree-dump-times "stpcpy \\(" 0 "strlen" } } */
|
18 |
|
|
/* { dg-final { cleanup-tree-dump "strlen" } } */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.