diff options
author | Jackson Schuster <jschuster@microsoft.com> | 2021-12-06 00:08:13 +0300 |
---|---|---|
committer | Jackson Schuster <jschuster@microsoft.com> | 2021-12-10 01:39:54 +0300 |
commit | e91d3adf429e9c365caf1b46928d0019bc0aa2bc (patch) | |
tree | 410dd4836fcce49ac9ec9db2a68f8711fbc632de | |
parent | 149b0e3c6932dac45dc7253e179b7ee2f42cccea (diff) |
Remove test that calls COM code within a lambda
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Interop/PInvoke/Warnings/ComPInvokeWarning.cs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Interop/PInvoke/Warnings/ComPInvokeWarning.cs b/test/Mono.Linker.Tests.Cases/Interop/PInvoke/Warnings/ComPInvokeWarning.cs index 6909d5967..d64847908 100644 --- a/test/Mono.Linker.Tests.Cases/Interop/PInvoke/Warnings/ComPInvokeWarning.cs +++ b/test/Mono.Linker.Tests.Cases/Interop/PInvoke/Warnings/ComPInvokeWarning.cs @@ -30,7 +30,6 @@ namespace Mono.Linker.Tests.Cases.Interop.PInvoke.Warnings Call_CanSuppressWarningOnParameter (); Call_CanSuppressWarningOnReturnType (); Call_CanSuppressWithRequiresUnreferencedCode (); - Call_CanSuppressWithRequiresUnreferencedCodeInLambda (); Call_CanSuppressPInvokeWithRequiresUnreferencedCode (); Call_PInvokeWithRequiresUnreferencedCode (); } @@ -175,14 +174,6 @@ namespace Mono.Linker.Tests.Cases.Interop.PInvoke.Warnings [DllImport ("Foo")] static extern void CanSuppressPInvokeWithRequiresUnreferencedCode (IFoo foo); - [RequiresUnreferencedCode ("test")] - static void Call_CanSuppressWithRequiresUnreferencedCodeInLambda () - { - Action<int> lambda = (x) => CanSuppressWithRequiresUnreferencedCode (null); - lambda (0); - } - - [ExpectedWarning ("IL2050")] [ExpectedWarning ("IL2026")] static void Call_PInvokeWithRequiresUnreferencedCode () |