PR libstdc++/87308 adjust regex used in std::any pretty printer
[official-gcc.git] / gcc / testsuite / c-c++-common / uninit-pr51010.c
blobf28da46562ce058971928a30b2cf12b621a8b1eb
1 /* { dg-do compile } */
2 /* { dg-options "-O -Wuninitialized" } */
4 int f (int j)
6 int a [10];
7 return a [j]; /* { dg-warning "a\\\[j\\\]. is used uninitialized" } */
9 int g (int j)
11 int a [10];
12 return a [j+1]; /* { dg-warning "a\\\[<unknown>\\\]. is used uninitialized" } */