File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -417,8 +417,8 @@ bool ProcessPrimaryQueue ()
417417
418418 while ( ! QueueIsEmpty ( ) ) {
419419 ProcessQueue ( ) ;
420- ProcessInterfaceMethods ( ) ;
421420 ProcessMarkedTypesWithInterfaces ( ) ;
421+ ProcessInterfaceMethods ( ) ;
422422 ProcessDynamicCastableImplementationInterfaces ( ) ;
423423 ProcessPendingBodies ( ) ;
424424 DoAdditionalProcessing ( ) ;
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ namespace Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed
66{
77 [ SetupCSharpCompilerToUse ( "csc" ) ]
88 [ SetupLinkerArgument ( "--used-attrs-only" , "true" ) ]
9+
10+ // Necessary to allow trimming the attribute instance from types in CoreLib.
11+ [ SetupLinkerTrimMode ( "link" ) ]
12+ // When we allow trimming CoreLib, some well-known types expected by ILVerify are removed.
13+ [ SkipILVerify ]
914 public class MethodWithUnmanagedConstraint
1015 {
1116 public static void Main ( )
You can’t perform that action at this time.
0 commit comments