mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-28 03:55:14 +00:00
14 lines
221 B
C
14 lines
221 B
C
/* { dg-do compile } */
|
|
/* Test that -Warray-bounds is enabled by -Wall */
|
|
/* { dg-options "-O2 -Wall" } */
|
|
|
|
int a[10];
|
|
|
|
int* f(void) {
|
|
|
|
a[-1] = 0; /* { dg-warning "array subscript" } */
|
|
|
|
return a;
|
|
}
|
|
|