瀏覽代碼

2002-04-22 Ravi Pratap <[email protected]>

	* test-104.cs : Another overload resolution test !

svn path=/trunk/mcs/; revision=3966
Ravi Pratap M 24 年之前
父節點
當前提交
6d29503b13
共有 3 個文件被更改,包括 18 次插入2 次删除
  1. 4 0
      mcs/tests/ChangeLog
  2. 0 2
      mcs/tests/test-101.cs
  3. 14 0
      mcs/tests/test-104.cs

+ 4 - 0
mcs/tests/ChangeLog

@@ -1,3 +1,7 @@
+2002-04-22  Ravi Pratap  <[email protected]>
+
+	* test-104.cs : Another overload resolution test !
+
 2002-04-05  Ravi Pratap  <[email protected]>
 
 	* test-101.cs : Add test from Paolo.

+ 0 - 2
mcs/tests/test-101.cs

@@ -3,7 +3,6 @@ using System.Reflection;
 
 namespace Test {
 	
-       	[AttributeUsage (AttributeTargets.All)]
 	public class MyAttribute: Attribute {
 		public string val;
 		public MyAttribute (string stuff) {
@@ -12,7 +11,6 @@ namespace Test {
 		}
 	}
 	
-       	[AttributeUsage (AttributeTargets.All)]
 	public class My2Attribute: MyAttribute {
 		public int ival;
 		public My2Attribute (string stuff, int blah) : base (stuff) {

+ 14 - 0
mcs/tests/test-104.cs

@@ -0,0 +1,14 @@
+//
+// Test to ensure we do correct overload resolution
+//
+using System;
+
+class Test {
+        public static int Main(String[] args) {
+                long iTest = 1;
+
+                System.Threading.Interlocked.Increment(ref iTest);
+
+		return 0;
+        }
+}