blob: 9fd1ea3a2626a85396c1870b13f3f22e32d4f439 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O -Wuninitialized" } */
int f (int j)
{
int a [10];
return a [j]; /* { dg-warning "a|a\\\[j\\\]. is used uninitialized" } */
}
int g (int j)
{
int a [10];
return a [j+1]; /* { dg-warning "a|a\\\[<unknown>\\\]. is used uninitialized" } */
}