diff options
author | Mike Voorhees <mrvoorhe@users.noreply.github.com> | 2020-03-02 17:41:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 17:41:08 +0300 |
commit | 3ab050a1bab04b84e8544b32e2ff6da446b4a79a (patch) | |
tree | a45a7907748dc8c3a551f5d84b9de1697d25fe2a /test/Mono.Linker.Tests.Cases/UnreachableBlock/DeadVariables.cs | |
parent | cd01694ab1406159dd8e3f0ab81624f5feec2414 (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/DeadVariables.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/UnreachableBlock/DeadVariables.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/UnreachableBlock/DeadVariables.cs b/test/Mono.Linker.Tests.Cases/UnreachableBlock/DeadVariables.cs index 58c960936..b779c571f 100644 --- a/test/Mono.Linker.Tests.Cases/UnreachableBlock/DeadVariables.cs +++ b/test/Mono.Linker.Tests.Cases/UnreachableBlock/DeadVariables.cs @@ -6,6 +6,7 @@ namespace Mono.Linker.Tests.Cases.UnreachableBlock { [SetupCSharpCompilerToUse ("csc")] [SetupCompileArgument ("/optimize+")] + [SetupLinkerArgument ("--enable-opt", "ipconstantpropagation")] public class DeadVariables { public static void Main () |