PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / chkp-remove-bndint-2.c
blobeea0b0afa10433798b19d6557df94bbf0f990f5b
1 /* { dg-do compile { target { ! x32 } } } */
2 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-optimized -Wchkp" } */
3 /* { dg-final { scan-tree-dump-not "bndint" "optimized" } } */
5 struct S
7 int a;
8 int b;
9 int c;
12 int test (struct S *ps)
14 int *pi = &ps->b;
15 return *(pi + 1); /* { dg-warning "memory access check always fail" } */