Commit a3378cea by Xinliang David Li Committed by Xinliang David Li

fix PR45121

From-SVN: r162687
parent a1a6c2df
2010-07-29 Xinliang David Li <davidxl@google.com>
PR tree-optimization/45121
* c-c++-common/uninit-17.c: Fix expected output.
2010-07-29 Richard Guenther <rguenther@suse.de> 2010-07-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45120 PR tree-optimization/45120
......
...@@ -9,9 +9,9 @@ static void bar(int a, int *ptr) ...@@ -9,9 +9,9 @@ static void bar(int a, int *ptr)
{ {
do do
{ {
int b; /* { dg-warning "is used uninitialized" } */ int b; /* { dg-message "declared" } */
if (b < 40) { if (b < 40) {
ptr[0] = b; ptr[0] = b; /* { dg-warning "may be used uninitialized" } */
} }
b += 1; b += 1;
ptr++; ptr++;
......
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