use the computed value to avoid dead code elimination
authorDietmar Maurer <dietmar@mono-cvs.ximian.com>
Mon, 14 Apr 2003 15:14:52 +0000 (15:14 -0000)
committerDietmar Maurer <dietmar@mono-cvs.ximian.com>
Mon, 14 Apr 2003 15:14:52 +0000 (15:14 -0000)
svn path=/trunk/mono/; revision=13594

mono/benchmark/static-fields.cs

index ce63d1c56551dc66e74507ed5b06cbc3fc4a887a..9ac89df333a5b96ff40be63dfa01cb2fadba90d7 100755 (executable)
@@ -2,7 +2,7 @@ using System;
 
 public class Tests {
 
-       static int si = 0;
+       public static int si = 0;
        
        public static int Main (string[] args) {
                int h = 0, repeat = 1;
@@ -14,6 +14,9 @@ public class Tests {
                                h += si;
                        }
                }
+
+               if (h != 0)
+                       return 1;
                
                return 0;
        }