2 // Bruce Lowekamp <lowekamp@sipeerior.com> reported that in a program with a
3 // reachable leak, if you do:
5 // valgrind --leak-check=yes --gen-suppressions=yes --show-reachable=no -q
7 // it gives the y/n/c suppression prompt for errors that aren't shown. This
8 // test checks that is fixed.
10 // [The .vgtest file was later changed to use --leak-check=all so that if a
11 // suppression is (erroneously?) generated, the test doesn't wait for the user
12 // to press 'y', because that pauses the entire regtest system.]
20 a
= malloc(1000); // Becomes a reachable leak.