diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs new file mode 100644 index 000000000..c0ce6ef0b --- /dev/null +++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs @@ -0,0 +1,17 @@ +using System; + +namespace Mono.Linker.Tests.Cases.Expectations.Assertions { + [AttributeUsage (AttributeTargets.Method, AllowMultiple = true, Inherited = false)] + public class KeptInitializerData : KeptAttribute { + + public KeptInitializerData () + { + } + + public KeptInitializerData (int occuranceIndexInBody) + { + if (occuranceIndexInBody < 0) + throw new ArgumentException (); + } + } +}
\ No newline at end of file |