* c-c++-common/uninit-17.c: Adjust.

From-SVN: r164002
This commit is contained in:
Michael Matz 2010-09-08 14:29:13 +00:00 committed by Michael Matz
parent 0f443ad061
commit 42a3beeb9a
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2010-09-08 Michael Matz <matz@suse.de>
* c-c++-common/uninit-17.c: Adjust.
2010-09-08 Michael Matz <matz@suse.de>
PR tree-optimization/43430

View File

@ -11,9 +11,9 @@ static void bar(int a, int *ptr)
{
int b; /* { dg-message "declared" } */
if (b < 40) {
ptr[0] = b; /* { dg-warning "may be used uninitialized" } */
ptr[0] = b;
}
b += 1;
b += 1; /* { dg-warning "may be used uninitialized" } */
ptr++;
}
while (--a != 0);