Make the tests working.
gcc/testsuite/ChangeLog: * g++.dg/uninit-pred-loop-1_b.C: Fix invalid warnings. * g++.dg/uninit-pred-loop-1_c.C: Likewise.
This commit is contained in:
parent
91a38a35a7
commit
a42805deb8
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ int foo(int n)
|
|||
_err = bar();
|
||||
}
|
||||
_err;
|
||||
}); /* { dg-warning "uninitialized" "warn on _err" } */
|
||||
});
|
||||
|
||||
if (err == 0) return 17;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wuninitialized -O2" } */
|
||||
/* { dg-options "-Wuninitialized -O2 -std=c++98" } */
|
||||
|
||||
extern int bar();
|
||||
int foo(int n, int m)
|
||||
|
@ -15,7 +15,7 @@ int foo(int n, int m)
|
|||
_err;
|
||||
});
|
||||
|
||||
if (err == 0) return 17; }); /* { dg-warning "uninitialized" "warn on _err" } */
|
||||
if (err == 0) return 17;
|
||||
}
|
||||
|
||||
return 18;
|
||||
|
|
Loading…
Add table
Reference in a new issue