Skip to content

Commit 6623792

Browse files
[release/7.0] Update Roslyn compiler build (#75156)
* Update to compiler build 4.4.0-3.22431.10 * Add missing types * Remove duplicate Microsoft.Interop.SourceGeneration reference Co-authored-by: Charles Stoner <[email protected]>
1 parent b357f02 commit 6623792

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<!--
5353
TODO: Remove pinned version once arcade supplies a compiler that enables the repo to compile.
5454
-->
55-
<MicrosoftNetCompilersToolsetVersion>4.4.0-2.22412.11</MicrosoftNetCompilersToolsetVersion>
55+
<MicrosoftNetCompilersToolsetVersion>4.4.0-3.22452.8</MicrosoftNetCompilersToolsetVersion>
5656
<StaticCsVersion>0.2.0</StaticCsVersion>
5757
<!-- SDK dependencies -->
5858
<MicrosoftDotNetApiCompatTaskVersion>7.0.100-rc.1.22402.1</MicrosoftDotNetApiCompatTaskVersion>

src/coreclr/tools/aot/ILCompiler.TypeSystem.Tests/CoreTestAssembly/Platform.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ public struct RuntimeMethodHandle { }
6161
public struct RuntimeFieldHandle { }
6262

6363
public class Attribute { }
64+
public class AttributeUsageAttribute : Attribute
65+
{
66+
public AttributeUsageAttribute(AttributeTargets targets) { }
67+
public bool AllowMultiple { get; set; }
68+
public bool Inherited { get; set; }
69+
}
70+
71+
public enum AttributeTargets { }
6472

6573
public class ThreadStaticAttribute : Attribute { }
6674

src/libraries/System.Runtime/tests/System/Attributes.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,11 @@ public static void customAttributeCount()
331331
{
332332
List<CustomAttributeData> customAttributes = typeof(GetCustomAttribute).Module.CustomAttributes.ToList();
333333
// [System.Security.UnverifiableCodeAttribute()]
334+
// [System.Runtime.CompilerServices.RefSafetyRulesAttribute((Int32)11)]
334335
// [TestAttributes.FooAttribute()]
335336
// [TestAttributes.ComplicatedAttribute((Int32)1, Stuff = 2)]
336337
// [System.Diagnostics.DebuggableAttribute((Boolean)True, (Boolean)False)]
337-
Assert.Equal(4, customAttributes.Count);
338+
Assert.Equal(5, customAttributes.Count);
338339
}
339340

340341
[Fact]

0 commit comments

Comments
 (0)