From: Martin Sebor Date: Fri, 17 May 2019 23:14:09 +0000 (+0000) Subject: conv-op1.C: Adjust text of expected messages. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65989f1b784d323ba9544f562e885ebe90434597;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a27f50821b3..dd955bfb191 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -2,6 +2,10 @@ * 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 PR testsuite/89433 diff --git a/gcc/testsuite/g++.dg/overload/conv-op1.C b/gcc/testsuite/g++.dg/overload/conv-op1.C index abcd7413b1f..d3096192bfa 100644 --- a/gcc/testsuite/g++.dg/overload/conv-op1.C +++ b/gcc/testsuite/g++.dg/overload/conv-op1.C @@ -10,7 +10,7 @@ struct A void f() { const int i = 42; - A()(i); // { dg-message "" } + A()(i); // { dg-message "(conversion)" } // { dg-error "qualifiers" "" { target *-*-* } .-1 } } diff --git a/gcc/testsuite/g++.dg/ubsan/pr63956.C b/gcc/testsuite/g++.dg/ubsan/pr63956.C index cd67c32a547..1aac3ec9a66 100644 --- a/gcc/testsuite/g++.dg/ubsan/pr63956.C +++ b/gcc/testsuite/g++.dg/ubsan/pr63956.C @@ -11,7 +11,7 @@ fn1 (int a, int b) if (b != 2) a <<= b; // { 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 } return a; } @@ -34,7 +34,7 @@ fn2 (int a, int b) if (b != 2) a >>= b; // { 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; } diff --git a/gcc/testsuite/g++.old-deja/g++.pt/assign1.C b/gcc/testsuite/g++.old-deja/g++.pt/assign1.C index 95cbee0dadd..3dfa728f18e 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/assign1.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/assign1.C @@ -2,7 +2,7 @@ // Origin: Mark Mitchell template -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(); T t; };