summaryrefslogtreecommitdiff
path: root/mcs/tests/test-239.cs
blob: 9053080fed8d1faf44c64dcf0416d7ed4550f858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
{
        public static int Main()
        {
            TestClass ts = new TestClass ();
            ts.ConditionalMethod ();
            Console.WriteLine ("Succeeded");
            return 0;
        }
}