[Mono-bugs] [Bug 44229][Nor] Changed - mcs does not set beforefieldinit

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 13 Jun 2003 14:21:45 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=44229

--- shadow/44229	Fri Jun  6 08:07:16 2003
+++ shadow/44229.tmp.31900	Fri Jun 13 14:21:45 2003
@@ -2,13 +2,13 @@
 Product: Mono/MCS
 Version: unspecified
 OS: other
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: dietmar@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -33,6 +33,33 @@
 always
 
 ------- Additional Comments From dietmar@ximian.com  2003-06-06 08:07 -------
 Created an attachment (id=4547)
 test case
 
+
+------- Additional Comments From miguel@ximian.com  2003-06-13 14:21 -------
+using System;
+
+public class Test {
+
+	static readonly int a = 5;
+	static readonly int b = 6;
+
+	public static int Main (string[] args) {
+		int repeat = 1;
+		
+		if (args.Length == 1)
+			repeat = Convert.ToInt32 (args [0]);
+		
+		Console.WriteLine ("Repeat = " + repeat);
+
+		for (int i = 0; i < repeat*3; i++) {
+			for (int j = 0; j < 100000000; j++) {
+				if ((a != 5) || (b != 6))
+					return 1;
+			}
+		}
+		
+		return 0;
+	}
+}