Commit b60bca8f by Jason Merrill

re PR c/10175 (-Wunreachable-code doesn't work for single lines)

        PR c/10175
        * jump.c (never_reached_warning): Revert patch of 2002-11-02.
        Look backwards for a line note.

From-SVN: r65229
parent ed2e5902
/* PR c/10175 */
/* { dg-do compile } */
/* { dg-options "-Wunreachable-code" } */
int i,j;
int main(void)
{
if (0) {
i = 0; /* { dg-warning "will never be executed" "" } */
j = 0;
} else {
i = 1;
j = 1;
}
return 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