Commit 65989f1b by Martin Sebor Committed by Martin Sebor

conv-op1.C: Adjust text of expected messages.

gcc/testsuite/ChangeLog:

	* g++.dg/overload/conv-op1.C: Adjust text of expected messages.
	* g++.dg/ubsan/pr63956.C: Same.
	* g++.old-deja/g++.pt/assign1.C: Same.

From-SVN: r271364
parent 1a0a3744
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
* gcc.dg/gcc_diag-11.c: Remove accidentally committed test. * gcc.dg/gcc_diag-11.c: Remove accidentally committed test.
* g++.dg/overload/conv-op1.C: Adjust text of expected messages.
* g++.dg/ubsan/pr63956.C: Same.
* g++.old-deja/g++.pt/assign1.C: Same.
2019-05-17 Thomas Schwinge <thomas@codesourcery.com> 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
PR testsuite/89433 PR testsuite/89433
......
...@@ -10,7 +10,7 @@ struct A ...@@ -10,7 +10,7 @@ struct A
void f() void f()
{ {
const int i = 42; const int i = 42;
A()(i); // { dg-message "<conversion>" } A()(i); // { dg-message "(conversion)" }
// { dg-error "qualifiers" "" { target *-*-* } .-1 } // { dg-error "qualifiers" "" { target *-*-* } .-1 }
} }
......
...@@ -11,7 +11,7 @@ fn1 (int a, int b) ...@@ -11,7 +11,7 @@ fn1 (int a, int b)
if (b != 2) if (b != 2)
a <<= b; a <<= b;
// { dg-error "5 << -2.. is negative" "" { target *-*-* } .-1 } // { dg-error "5 << -2.. is negative" "" { target *-*-* } .-1 }
// { dg-error "is greater than or equal to the precision of the left operand" "" { target *-*-* } .-2 } // { dg-error "is greater than or equal to the precision .. of the left operand" "" { target *-*-* } .-2 }
// { dg-error "-2 << 4.. is negative" "" { target *-*-* } .-3 } // { dg-error "-2 << 4.. is negative" "" { target *-*-* } .-3 }
return a; return a;
} }
...@@ -34,7 +34,7 @@ fn2 (int a, int b) ...@@ -34,7 +34,7 @@ fn2 (int a, int b)
if (b != 2) if (b != 2)
a >>= b; a >>= b;
// { dg-error "4 >> -1.. is negative" "" { target *-*-* } .-1 } // { dg-error "4 >> -1.. is negative" "" { target *-*-* } .-1 }
// { dg-error "is greater than or equal to the precision of the left operand" "" { target *-*-* } .-2 } // { dg-error "is greater than or equal to the precision .. of the left operand" "" { target *-*-* } .-2 }
return a; return a;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Origin: Mark Mitchell <mark@codesourcery.com> // Origin: Mark Mitchell <mark@codesourcery.com>
template <class T> template <class T>
struct S { // { dg-error "const member\[^\n\r\]*can't use default assignment operator" } struct S { // { dg-error "const member\[^\n\r\]*cannot use default assignment operator" }
S(); S();
T t; T t;
}; };
......
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