Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-240.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 219e70b7328ce586e3b06ad86d72d8d5494b8ccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#define C2

using System;
using System.Diagnostics;

class TestClass {
	static int return_code = 1;
    
        [Conditional("C1"), Conditional("C2")]    
        public static void ConditionalMethod()
        {
            Console.WriteLine ("Succeeded");
            return_code = 0;
        }
    
        static int Main()
        {
            ConditionalMethod ();
            return return_code;
        }
}