diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/ubsan/bounds-4.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/ubsan/bounds-4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/c-c++-common/ubsan/bounds-4.c b/gcc/testsuite/c-c++-common/ubsan/bounds-4.c index 7748780884..88e7e14050 100644 --- a/gcc/testsuite/c-c++-common/ubsan/bounds-4.c +++ b/gcc/testsuite/c-c++-common/ubsan/bounds-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fsanitize=bounds -Wall -Wextra -Wno-unused" } */ +/* { dg-options "-fsanitize=bounds -Wall -Wextra -Wno-array-bounds -Wno-unused" } */ /* Initializers of TREE_STATICs aren't instrumented. But don't ICE on 'em. */ @@ -11,7 +11,7 @@ int *gpi; int main (void) { - gpi = &A[4]; + gpi = &A[4]; /* This will warn with -Warray-bounds, but only if VRP runs. */ static int *pi = &A[4]; return 0; } |