Explorar el Código

Improve test

svn path=/trunk/mcs/; revision=4462
Miguel de Icaza hace 24 años
padre
commit
e18fb6bd01
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      mcs/tests/test-40.cs

+ 4 - 0
mcs/tests/test-40.cs

@@ -26,6 +26,8 @@ public class Blah {
 	enum BB : ulong { x, y }
 
 	const int myconstant = 30;
+
+	enum Compute { two = AA.b + BB.y }
 	
 	public static int Main ()
 	{
@@ -41,6 +43,8 @@ public class Blah {
 		int k = (int) A.c;
 		int l = (int) AA.b + 1;
 
+		if (Compute.two != 2)
+			return 10;
 		if (i != j)
 			return 1;