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>2004-04-21 14:48:34 +0400
committerMarek Safar <marek.safar@gmail.com>2004-04-21 14:48:34 +0400
commit161717426e86bb7acd87ffed9d7cf1b085726e8d (patch)
tree56be65e0aa867a923ab2a3f709aa1d3cc688760d /mcs/tests/test-239.cs
parent4ac33082110d630aed2f188b42a21f732a9beee5 (diff)
2004-04-21 Marek Safar <marek.safar@seznam.cz>
* test-238.cs, test-239.cs, test-239.cs: Tests for ObsoleteAttribute svn path=/trunk/mcs/; revision=25771
Diffstat (limited to 'mcs/tests/test-239.cs')
-rw-r--r--mcs/tests/test-239.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/mcs/tests/test-239.cs b/mcs/tests/test-239.cs
new file mode 100644
index 00000000000..f6a74875fc3
--- /dev/null
+++ b/mcs/tests/test-239.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Diagnostics;
+
+
+class BaseClass
+{
+ [Conditional ("AAXXAA")]
+ public virtual void ConditionalMethod ()
+ {
+ Environment.Exit (1);
+ }
+}
+
+class TestClass: BaseClass
+{
+ public override void ConditionalMethod ()
+ {
+ base.ConditionalMethod ();
+ }
+}
+
+class MainClass
+{
+ static int Main()
+ {
+ TestClass ts = new TestClass ();
+ ts.ConditionalMethod ();
+ Console.WriteLine ("Succeeded");
+ return 0;
+ }
+}