[tuner] handle the case with multiple "preserve" attributes
[mono-project.git] / mcs / tests / test-739.cs
blobf9d312bb8a567c8cc62d67f0f21c8cd9ade33793
1 // Compiler options: -warnaserror
3 using System;
4 using System.Reflection;
6 sealed class X
8 ~X ()
10 Foo ();
13 public void Foo ()
17 public static int Main ()
19 foreach (var m in typeof (X).GetMethods (BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.DeclaredOnly)) {
20 Console.WriteLine (m.Name);
21 Console.WriteLine (m.Attributes);
22 if (m.Attributes != (MethodAttributes.Virtual | MethodAttributes.Family | MethodAttributes.HideBySig))
23 return 1;
26 return 0;