* gcc.dg/tree-prof/inliner-1.c: Fix testcase.
authorJan Hubicka <jh@suse.cz>
Thu, 11 Nov 2010 00:16:19 +0000 (01:16 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 11 Nov 2010 00:16:19 +0000 (00:16 +0000)
From-SVN: r166577

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/inliner-1.c

index 4c10cc7a6c76f638c1aae2bc1b0dd9e4e711e1da..3ee4e80a08a2ddc5314e466d3415040328593a94 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-10  Jan Hubicka  <jh@suse.cz>
+
+       * gcc.dg/tree-prof/inliner-1.c: Fix testcase.
+
 2010-11-10  Jason Merrill  <jason@redhat.com>
 
        * g++.dg/cpp0x/constexpr-bitfield.C: New.
index 8d7c87919a5ba2351e433dd478b6acb75597b764..b5340b56d74913659556745653df9183d9bce86b 100644 (file)
@@ -23,10 +23,14 @@ hot_function ()
 
 main ()
 {
-  if (a)
-    cold_function ();
-  else
-    hot_function ();
+  int i;
+  for (i = 0; i < 100; i++)
+    {
+      if (a)
+        cold_function ();
+      else
+        hot_function ();
+    }
   return 0;
 }