Browse Source

new test

svn path=/trunk/mcs/; revision=52087
Marek Safar 20 years ago
parent
commit
850cefe001
2 changed files with 16 additions and 0 deletions
  1. 15 0
      mcs/errors/cs1718.cs
  2. 1 0
      mcs/errors/known-issues-gmcs

+ 15 - 0
mcs/errors/cs1718.cs

@@ -0,0 +1,15 @@
+// cs1718.cs: Comparison made to same variable; did you mean to compare something else?
+// Line: 10
+// Compiler options: -warnaserror -warn:3
+
+class C
+{
+	public static void Main () 
+	{ 
+		int a = 20;
+		if (a > a) {
+			return;
+		}
+	}
+}
+ 

+ 1 - 0
mcs/errors/known-issues-gmcs

@@ -40,3 +40,4 @@ cs1540-5.cs NO ERROR # new in GMCS
 cs1586.cs
 cs1641.cs
 cs1666.cs NO ERROR
+cs1718.cs NO ERROR