File: chkp-stropt-12.c

package info (click to toggle)
gcc-arm-none-eabi 15%3A5.4.1%2Bsvn241155-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 503,380 kB
  • ctags: 403,175
  • sloc: ansic: 2,522,746; cpp: 711,332; ada: 605,323; makefile: 57,371; asm: 53,777; xml: 44,252; exp: 20,353; sh: 19,517; python: 3,932; perl: 2,691; awk: 2,627; ml: 2,385; pascal: 2,042; yacc: 316; lex: 198; f90: 197; objc: 194; haskell: 109
file content (13 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target { ! x32 } } } */
/* { dg-require-effective-target mempcpy } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-fast-string-functions -D_GNU_SOURCE" } */
/* { dg-final { scan-tree-dump-not "mempcpy_nobnd" "chkpopt" } } */
/* { dg-final { cleanup-tree-dump "chkpopt" } } */

#define USE_GNU
#include "../../gcc.dg/strlenopt.h"

void test (void *buf1, void *buf2, size_t len)
{
  mempcpy (buf1, buf2, len);
}