Require non-x32 target for compile-time MPX tests
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / chkp-bndret.c
blobd84ea70dcda70f943dee6b4485a441130a81d88c
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" } } */
5 #include "string.h"
7 extern int *test1 (int *p) __attribute__((bnd_legacy));
9 int *
10 test2 (int *p)
12 return test1 (p);