Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2009-10-05 21:11:04 +0400
committerMarek Safar <marek.safar@gmail.com>2009-10-05 21:11:04 +0400
commit5cc5c1ed8b01fe7d945aa4d95bd0deb0b1868bdf (patch)
tree59ea2db9ce3a09a12ad49c917f7794de5893cb44 /mcs/tests/gtest-466.cs
parent9b979d2d116c3278833dec8e5f9eb9130717a0d7 (diff)
New test.
svn path=/trunk/mcs/; revision=143426
Diffstat (limited to 'mcs/tests/gtest-466.cs')
-rw-r--r--mcs/tests/gtest-466.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/tests/gtest-466.cs b/mcs/tests/gtest-466.cs
new file mode 100644
index 00000000000..8da755dff9e
--- /dev/null
+++ b/mcs/tests/gtest-466.cs
@@ -0,0 +1,22 @@
+using System;
+
+class Program
+{
+ bool Test<T> (T t) where T : class
+ {
+ return t == this;
+ }
+
+ static int Main ()
+ {
+ var p = new Program ();
+
+ if (p.Test ("a"))
+ return 1;
+
+ if (!p.Test (p))
+ return 2;
+
+ return 0;
+ }
+}