blob: ee259cc9fb68c35a58c47351c58a8f2a81a24ab7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do run } */
/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
#include "mpx-check.h"
int buf[100];
int mpx_test (int argc, const char **argv)
{
assert (buf + 10 == __bnd_init_ptr_bounds (buf + 10));
return 0;
}
|