1 /* PR17544 Incorrect -Wunreachable-code warning
2 Origin: sebor@roguewave.com
4 G++ appends a "return 0;" when finishing a function, but it was not
5 given a source location. The gimplifier thinks a return statement
6 needs a locus so it would add one, making the compiler generated code
7 visible to the unreachable code warning. */
9 /* { dg-do compile } */
10 /* { dg-options "-O -Wunreachable-code" } */
13 main (int argc, char *argv[])
15 const char* const s = argc < 2 ? "" : argv [1];