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/TestFramework/CanCompileReferencesWithResourcesWithMcs.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/TestFramework/CanCompileReferencesWithResourcesWithMcs.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/TestFramework/CanCompileReferencesWithResourcesWithMcs.cs b/test/Mono.Linker.Tests.Cases/TestFramework/CanCompileReferencesWithResourcesWithMcs.cs
new file mode 100644
index 000000000..42fa53931
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases/TestFramework/CanCompileReferencesWithResourcesWithMcs.cs
@@ -0,0 +1,26 @@
+using Mono.Linker.Tests.Cases.Expectations.Assertions;
+using Mono.Linker.Tests.Cases.Expectations.Metadata;
+using Mono.Linker.Tests.Cases.TestFramework.Dependencies;
+
+namespace Mono.Linker.Tests.Cases.TestFramework {
+ [SetupCompileBefore ("library.dll",
+ new [] { "Dependencies/CanCompileReferencesWithResources_Lib1.cs" },
+ resources: new [] { "Dependencies/CanCompileReferencesWithResources_Lib1.txt" },
+ compilerToUse: "mcs")]
+
+ // Compile the same assembly again with another resource to get coverage on SetupCompileAfter
+ [SetupCompileAfter ("library.dll",
+ new [] { "Dependencies/CanCompileReferencesWithResources_Lib1.cs" },
+ resources: new [] { "Dependencies/CanCompileReferencesWithResources_Lib1.txt", "Dependencies/CanCompileReferencesWithResources_Lib1.log" },
+ compilerToUse: "mcs")]
+
+ [KeptResourceInAssembly ("library.dll", "CanCompileReferencesWithResources_Lib1.txt")]
+ [KeptResourceInAssembly ("library.dll", "CanCompileReferencesWithResources_Lib1.log")]
+ public class CanCompileReferencesWithResourcesWithMcs {
+ public static void Main ()
+ {
+ // Use something so that reference isn't removed at compile time
+ CanCompileReferencesWithResources_Lib1.Used ();
+ }
+ }
+} \ No newline at end of file