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/* { dg-final { cleanup-tree-dump "chkp" } } */ 5 6#include "string.h" 7 8extern int *test1 (int *p) __attribute__((bnd_legacy)); 9 10int * 11test2 (int *p) 12{ 13 return test1 (p); 14} 15