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