Move dg-error directives to relevant lines

* 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.
	* testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Likewise.

From-SVN: r238994
This commit is contained in:
Jonathan Wakely 2016-08-02 20:34:25 +01:00 committed by Jonathan Wakely
parent 64dde68296
commit a4e1011c49
4 changed files with 11 additions and 12 deletions

View File

@ -1,5 +1,11 @@
2016-08-02 Jonathan Wakely <jwakely@redhat.com>
* 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.
* testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Likewise.
* scripts/testsuite_flags.in: Add -fno-show-column to cxxflags.
* testsuite/18_support/bad_exception/23591_thread-1.c: Skip test if

View File

@ -25,9 +25,7 @@
int main()
{
std::error_code e;
int i = e;
int i = e; // { dg-error "cannot convert" }
return i;
}
// { dg-error "cannot convert" "" { target *-*-* } 28 }

View File

@ -24,9 +24,7 @@
int test01()
{
std::error_condition e;
int i = e;
int i = e; // { dg-error "cannot convert" }
return i;
}
// { dg-error "cannot convert" "" { target *-*-* } 27 }

View File

@ -31,24 +31,21 @@ test01()
void
test02()
{
std::ratio<INTMAX_MIN, 1> r1 __attribute__((unused));
std::ratio<INTMAX_MIN, 1> r1 __attribute__((unused)); // { dg-error "required from here" }
}
void
test03()
{
std::ratio<1, INTMAX_MIN> r1 __attribute__((unused));
std::ratio<1, INTMAX_MIN> r1 __attribute__((unused)); // { dg-error "required from here"
}
void
test04()
{
std::ratio<1,0> r1 __attribute__((unused));
std::ratio<1,0> r1 __attribute__((unused)); // { dg-error "required from here"
}
// { dg-error "required from here" "" { target *-*-* } 34 }
// { dg-error "required from here" "" { target *-*-* } 40 }
// { dg-error "required from here" "" { target *-*-* } 46 }
// { dg-error "denominator cannot be zero" "" { target *-*-* } 265 }
// { dg-error "out of range" "" { target *-*-* } 266 }
// { dg-error "overflow in constant expression" "" { target *-*-* } 61 }