re PR testsuite/25241 ([C++] DejaGNU does not distinguish between errors and warnings)
[gcc.git] / gcc / testsuite / g++.dg / warn / overflow-warn-6.C
index fa0cc83fa4dedb47c995fef37b491ebe056191b2..6c7a28b3c546d35a218b78163780c30ef762f456 100644 (file)
@@ -7,12 +7,12 @@
 int 
 h1 (int x)
 {
-  return x * (0 * (INT_MAX + 1)); /* { dg-warning "warning: integer overflow in expression" } */
+  return x * (0 * (INT_MAX + 1)); /* { dg-warning "integer overflow in expression" } */
 }
 
 int 
 h2 (int x)
 {
-  return ((INT_MAX + 1) * 0) * x; /* { dg-warning "warning: integer overflow in expression" } */
+  return ((INT_MAX + 1) * 0) * x; /* { dg-warning "integer overflow in expression" } */
 }