svn path=/trunk/mono/; revision=2369
enum2.cs \
property.cs \
enumcast.cs \
+ newobj-valuetype.cs \
arraylist-clone.cs \
setenv.cs \
vtype.cs \
--- /dev/null
+
+namespace Test {
+ public struct Struct {
+ public int a;
+
+ public Struct (int val) {
+ a = val;
+ }
+
+ public static int Main () {
+ object o = new Struct (1);
+ Struct s = new Struct (2);
+
+ if (s.a != 2)
+ return 1;
+ if (((Struct)o).a != 1)
+ return 2;
+ return 0;
+ }
+ }
+}
--- /dev/null
+using System;
+
+// You need to compile this test with mcs:
+// csc will discard unreachable code sections
+
+namespace Test {
+ public class Test {
+ public static int Main () {
+ int var = 0;
+ goto label2;
+ label1:
+ goto label2;
+ label2:
+ return var;
+ }
+ }
+}