aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr71458.c
blob: d36b61cbe02fad513dfb5bb5da37854caf8d5f67 (plain)
1
2
3
4
5
6
7
/* { dg-do compile { target { ! x32 } } } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -fsanitize=bounds" } */
/* { dg-error "'-fcheck-pointer-bounds' is not supported with '-fsanitize=bounds'" "" { target *-*-* } 0 } */

enum {} a[0];
void fn1(int);
void fn2() { fn1(a[-1]); }