]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/testsuite/gcc.dg/pr68317.c
tree-optimization/114151 - revert PR114074 fix
[gcc.git] / gcc / testsuite / gcc.dg / pr68317.c
index 06cd2e1da9ca8346ee6f853152599536b2eb0519..bd053a7522bcbc7dc0ef2ae30d48f51566b5c1ae 100644 (file)
@@ -12,8 +12,8 @@ foo ()
 {
  int32_t index = 0;
 
- for (index; index <= 10; index--) /* { dg-warning "iteration \[0-9\]+ invokes undefined behavior" } */
+ for (index; index <= 10; index--) // expected warning here
    /* Result of the following multiply will overflow
       when converted to signed int32_t.  */
-   bar ((0xcafe + index) * 0xdead);
+   bar ((0xcafe + index) * 0xdead);  /* { dg-warning "iteration \[0-9\]+ invokes undefined behavior" } */
 }
This page took 0.041549 seconds and 5 git commands to generate.