MPX: Fix option handling.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr71458.c
blobd36b61cbe02fad513dfb5bb5da37854caf8d5f67
1 /* { dg-do compile { target { ! x32 } } } */
2 /* { dg-options "-fcheck-pointer-bounds -mmpx -fsanitize=bounds" } */
3 /* { dg-error "'-fcheck-pointer-bounds' is not supported with '-fsanitize=bounds'" "" { target *-*-* } 0 } */
5 enum {} a[0];
6 void fn1(int);
7 void fn2() { fn1(a[-1]); }