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

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/FeatureSettings/FeatureSubstitutionsNested.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/FeatureSettings/FeatureSubstitutionsNested.cs35
1 files changed, 21 insertions, 14 deletions
diff --git a/test/Mono.Linker.Tests.Cases/FeatureSettings/FeatureSubstitutionsNested.cs b/test/Mono.Linker.Tests.Cases/FeatureSettings/FeatureSubstitutionsNested.cs
index b9a4f1c13..204f48df8 100644
--- a/test/Mono.Linker.Tests.Cases/FeatureSettings/FeatureSubstitutionsNested.cs
+++ b/test/Mono.Linker.Tests.Cases/FeatureSettings/FeatureSubstitutionsNested.cs
@@ -15,24 +15,11 @@ namespace Mono.Linker.Tests.Cases.FeatureSettings
[SetupLinkerArgument ("--feature", "MethodCondition", "false")]
[SetupLinkerArgument ("--feature", "FieldCondition", "true")]
[SetupLinkerArgument ("--feature", "ResourceCondition", "true")]
+ [SetupLinkerArgument ("--enable-opt", "ipconstprop")]
[RemovedResourceInAssembly ("test.exe", "ResourceFileRemoveWhenTrue.txt")]
[KeptResource ("ResourceFileRemoveWhenFalse.txt")]
public class FeatureSubstitutionsNested
{
- [ExpectedInstructionSequence (new[] {
- "nop",
- "ldc.i4.1",
- "pop",
- "ldc.i4.0",
- "pop",
- "ldc.i4.1",
- "pop",
- "ldc.i4.0",
- "pop",
- "ldsfld System.Boolean Mono.Linker.Tests.Cases.FeatureSettings.FeatureSubstitutionsNested::FieldConditionField",
- "pop",
- "ret",
- })]
public static void Main ()
{
GlobalConditionMethod ();
@@ -42,21 +29,41 @@ namespace Mono.Linker.Tests.Cases.FeatureSettings
_ = FieldConditionField;
}
+ [Kept]
+ [ExpectedInstructionSequence (new[] {
+ "ldc.i4.1",
+ "ret",
+ })]
static bool GlobalConditionMethod ()
{
throw new NotImplementedException ();
}
+ [Kept]
+ [ExpectedInstructionSequence (new[] {
+ "ldc.i4.0",
+ "ret",
+ })]
static bool AssemblyConditionMethod ()
{
throw new NotImplementedException ();
}
+ [Kept]
+ [ExpectedInstructionSequence (new[] {
+ "ldc.i4.1",
+ "ret",
+ })]
static bool TypeConditionMethod ()
{
throw new NotImplementedException ();
}
+ [Kept]
+ [ExpectedInstructionSequence (new[] {
+ "ldc.i4.0",
+ "ret",
+ })]
static bool MethodConditionMethod ()
{
throw new NotImplementedException ();