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/Substitutions/FeatureSubstitutionsNested.xml')
-rw-r--r--test/Mono.Linker.Tests.Cases/Substitutions/FeatureSubstitutionsNested.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Substitutions/FeatureSubstitutionsNested.xml b/test/Mono.Linker.Tests.Cases/Substitutions/FeatureSubstitutionsNested.xml
new file mode 100644
index 000000000..122bea08d
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases/Substitutions/FeatureSubstitutionsNested.xml
@@ -0,0 +1,32 @@
+<linker>
+ <!-- Check that the feature attribute can be used on the assembly element. -->
+ <assembly fullname="test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" feature="AssemblyCondition" featurevalue="false">
+ <type fullname="Mono.Linker.Tests.Cases.Substitutions.FeatureSubstitutionsNested">
+ <method signature="System.Boolean AssemblyConditionMethod()" body="stub" value="false" />
+ </type>
+ <!-- Or on the type element. -->
+ <type fullname="Mono.Linker.Tests.Cases.Substitutions.FeatureSubstitutionsNested" feature="TypeCondition" featurevalue="true">
+ <method signature="System.Boolean TypeConditionMethod()" body="stub" value="true">
+ </method>
+ <!-- Or on the method element. -->
+ <method signature="System.Boolean MethodConditionMethod()" body="stub" value="false" feature="MethodCondition" featurevalue="false" />
+ <!-- Else case -->
+ <method signature="System.Boolean MethodConditionMethod()" body="stub" value="true" feature="MethodCondition" featurevalue="true" />
+ <!-- Or on the field element. -->
+ <field name="FieldConditionField" value="true" initialize="true" feature="FieldCondition" featurevalue="true" />
+ <!-- Else case -->
+ <field name="FieldConditionField" value="false" initialize="true" feature="FieldCondition" featurevalue="false" />
+ </type>
+ <!-- Else case for the type feature attribute -->
+ <type fullname="Mono.Linker.Tests.Cases.Substitutions.FeatureSubstitutionsNested" feature="TypeCondition" featurevalue="false">
+ <method signature="System.Boolean TypeConditionMethod()" body="stub" value="false">
+ </method>
+ </type>
+ </assembly>
+ <!-- Else case for the assembly feature attribute -->
+ <assembly fullname="test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" feature="AssemblyCondition" featurevalue="true">
+ <type fullname="Mono.Linker.Tests.Cases.Substitutions.FeatureSubstitutionsNested">
+ <method signature="System.Boolean AssemblyConditionMethod()" body="stub" value="true" />
+ </type>
+ </assembly>
+</linker> \ No newline at end of file