[w32handle] Stop returning 0 in every cases for locking/unlocking (#3926)
[mono.git] / mcs / tools / linker / Tests / TestCases / Linker / PreserveFieldsRequired / Library.cs
1 using System;
2
3 public class Foo {
4
5         public Foo ()
6         {
7                 new NotRequiredButUsedNotPreserved ();
8                 new NotRequiredButUsedAndFieldsPreserved ();
9         }
10 }
11
12 public class NotRequiredButUsedNotPreserved {
13
14         [NotLinked] public int foo;
15         [NotLinked] public int bar;
16 }
17
18 public class NotRequiredButUsedAndFieldsPreserved {
19
20         public int foo;
21         public int bar;
22
23         [NotLinked] public int FooBar ()
24         {
25                 return foo + bar;
26         }
27 }
28
29 [NotLinked] public class NotRequiredAndNotUsed {
30 }
31
32 [NotLinked, AttributeUsage (AttributeTargets.All)]
33 public class NotLinkedAttribute : Attribute {
34 }