re PR tree-optimization/45232 (tree reassociation introduces undefined overflow)
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / reassoc-18.c
index ce52cd0d04e8483a5593d823b29b587e796fe81e..ab7fe295aa36874addbf88ba25196c08bf04c015 100644 (file)
@@ -1,10 +1,10 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fdump-tree-reassoc1" } */
 
-int
-ETree_nFactorEntriesInFront (int b, int m)
+unsigned int
+ETree_nFactorEntriesInFront (unsigned int b, unsigned int m)
 {
-  int nent = b*b + 2*b*m;
+  unsigned int nent = b*b + 2*b*m;
   return nent;
 }