From: Dietmar Maurer Date: Mon, 14 Apr 2003 15:14:52 +0000 (-0000) Subject: use the computed value to avoid dead code elimination X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=c3abb59640cc9afb0f7a1952442c3ebdec442dc0;p=mono.git use the computed value to avoid dead code elimination svn path=/trunk/mono/; revision=13594 --- diff --git a/mono/benchmark/static-fields.cs b/mono/benchmark/static-fields.cs index ce63d1c5655..9ac89df333a 100755 --- a/mono/benchmark/static-fields.cs +++ b/mono/benchmark/static-fields.cs @@ -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; }