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
* 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>
PR testsuite/89433
void f()
{
const int i = 42;
- A()(i); // { dg-message "<conversion>" }
+ A()(i); // { dg-message "(conversion)" }
// { dg-error "qualifiers" "" { target *-*-* } .-1 }
}
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;
}
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;
}
// Origin: Mark Mitchell <mark@codesourcery.com>
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();
T t;
};