blob: 9b0636339e5ba388d199a574fd039dd716bc3b86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile { target { ! x32 } } } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -fsanitize=address" } */
/* { dg-error "-fcheck-pointer-bounds is not supported with Address Sanitizer" "" { target *-*-* } 0 } */
extern int x[];
void
foo ()
{
x[0] = 0;
}
|