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

test-291.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bd5a7d3111e8da3eb3b53eb1f9836080e45393ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Compiler options: -warnaserror -warn:4

using System;

public class Test
{
    [Obsolete]
    static void Method () {}
        
    public static void Main ()
    {
        #pragma warning disable 219	 ,	 612
        int i = 0;
        Method ();
        #pragma warning restore 612   // Some comment here
        #pragma warning disable // Some comment here
        Method ();
        #pragma warning restore
    }
}