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:
authorMike Voorhees <mrvoorhe@users.noreply.github.com>2020-03-02 17:41:08 +0300
committerGitHub <noreply@github.com>2020-03-02 17:41:08 +0300
commit3ab050a1bab04b84e8544b32e2ff6da446b4a79a (patch)
treea45a7907748dc8c3a551f5d84b9de1697d25fe2a /test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs
parentcd01694ab1406159dd8e3f0ab81624f5feec2414 (diff)
Explicitly enable optimization during test (#974)
Explicitly enable `IPConstantPropagation` during the `UnreachableBlock` tests. This gives implementors of a linker executable the freedom to pick which optimizations are enabled by default while also ensuring that they can pass all tests. This is consistent with other optimizations such as unreachable bodies, used attrs only, etc.
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs b/test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs
index b4acde444..a28ac1929 100644
--- a/test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs
+++ b/test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs
@@ -5,6 +5,7 @@ namespace Mono.Linker.Tests.Cases.UnreachableBlock
{
[SetupCSharpCompilerToUse ("csc")]
[SetupCompileArgument ("/optimize+")]
+ [SetupLinkerArgument ("--enable-opt", "ipconstantpropagation")]
public class MultiStageRemoval
{
public static void Main()