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-03-23 15:42:57 +0300
committerMarek Safar <marek.safar@gmail.com>2009-03-23 15:42:57 +0300
commit6f2b5cd69f33daad2303e46311e7333239dadfdc (patch)
tree969dddc44f7e0c4f6de989745845b8a147b3a5e8 /mcs/tests/gtest-443.cs
parent9a7ea4a60abbcdb4779d57e4d8db8ee8d73a6607 (diff)
parent7f33c2d6ec2a26f25caded2501cfe00c243ee5f5 (diff)
New test.
svn path=/trunk/mcs/; revision=130047
Diffstat (limited to 'mcs/tests/gtest-443.cs')
-rw-r--r--mcs/tests/gtest-443.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/tests/gtest-443.cs b/mcs/tests/gtest-443.cs
new file mode 100644
index 00000000000..091b0f27780
--- /dev/null
+++ b/mcs/tests/gtest-443.cs
@@ -0,0 +1,18 @@
+using System;
+
+class C
+{
+ static void M<T> () where T : Exception, new ()
+ {
+ try {
+ throw new T ();
+ } catch (T ex) {
+ }
+ }
+
+ public static int Main ()
+ {
+ M<ApplicationException> ();
+ return 0;
+ }
+} \ No newline at end of file