On Tue, 22 Feb 2022 at 15:38, Krishna Narayanan wrote: > Yes, it does. > I used dg-warning and not dg warning (that was a sheer typing mistake). > The warning is about the uninitialized variable being used in the > testcase yet there is no warning on that line and the test results in > FAIL. > I used /* { dg-warning "uninitialized" } */ on that particular line.I > used the test in gcc.dg, with other directive /* { dg-options "-O2" } > */ . > Can you help me where I went wrong? > Don't you need -Wuninitialized in the dg-options as well? Like Segher said, show us the test. Asking us to debug your test without seeing it is going to be slow.