parent
0f443ad061
commit
42a3beeb9a
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue