Commit 42a3beeb by Michael Matz Committed by Michael Matz

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

From-SVN: r164002
parent 0f443ad0
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
* gcc.dg/vect/pr43430-2.c: New test.
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment