blob: e1f5cea5c17b4ffd1c65521e61d70ab70bff65f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* { dg-do compile } */
/* { dg-require-effective-target mpx } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkp" } */
/* { dg-final { scan-tree-dump-not "bndret" "chkp" } } */
#include "string.h"
extern int *test1 (int *p) __attribute__((bnd_legacy));
int *
test2 (int *p)
{
return test1 (p);
}
|