[PATCH] Move dg-error directives to relevant lines

2016-08-02 Thread Jonathan Wakely
A few more tests that use hardcoded dg-error line numbers, but could use implied ones. * testsuite/19_diagnostics/error_code/operators/bool_neg.cc: Move dg-error to relevant line. * testsuite/19_diagnostics/error_condition/operators/bool_neg.cc: Likewise. *

[PATCH] Move dg-error directives to relevant lines

2016-07-31 Thread Jonathan Wakely
I'm moving { dg-error "..." "" { target *-*-* } NN } to line NN so it can just be { dg-error "..." } with an implied line number. That makes the tests less fragile if the test changes and the line moves. * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Move dg-error to