Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

32 lines
562 B
C#

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;
}
}