On Mar 24, 2017, at 5:58 AM, Rainer Orth <r...@cebitec.uni-bielefeld.de> wrote: > - { /* { dg-warning "statement may fall through" "" { target c } 23 } */ > - int a[i]; /* { dg-warning "statement may fall through" "" { target c++ > } 24 } */ > + { /* { dg-warning "statement may fall through" "" { target c } 24 } */ > + int a[i]; /* { dg-warning "statement may fall through" "" { target c++ > } 25 } */
Any reason to not use relative line numbers? See testsuite/gcc.dg/dg-test-1.c for a template for how to do it. I think they should work and be better. Indeed, all line numbers should be relative, generally speaking.