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:
authorMiguel de Icaza <miguel@gnome.org>2003-06-24 08:14:27 +0400
committerMiguel de Icaza <miguel@gnome.org>2003-06-24 08:14:27 +0400
commit98803e2a38e86591ccd3b15c00c716aa8e37a665 (patch)
treee8bbf2680e6981e6d22a6b84369dbb57799815a2 /mcs/tests/test-195.cs
parentb7163f498cc14084bc1bd852152fd7186cd88a10 (diff)
Add new test
svn path=/trunk/mcs/; revision=15597
Diffstat (limited to 'mcs/tests/test-195.cs')
-rw-r--r--mcs/tests/test-195.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/mcs/tests/test-195.cs b/mcs/tests/test-195.cs
new file mode 100644
index 00000000000..ec8c963c331
--- /dev/null
+++ b/mcs/tests/test-195.cs
@@ -0,0 +1,29 @@
+using System;
+
+public class Y {
+ static int count = 0;
+
+ public static int C ()
+ {
+ count++;
+ if (count == 2)
+ throw new Exception ("error");
+ return 1;
+ }
+}
+
+class X {
+ int a = Y.C ();
+
+ X () : this (1)
+ {
+ }
+
+ X (int a) {
+ }
+
+ static void Main ()
+ {
+ X x = new X ();
+ }
+}