Skip to content

Commit

Permalink
[release/7.0] Update Roslyn compiler build (#75156)
Browse files Browse the repository at this point in the history
* Update to compiler build 4.4.0-3.22431.10

* Add missing types

* Remove duplicate Microsoft.Interop.SourceGeneration reference

Co-authored-by: Charles Stoner <10732005+cston@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and cston committed Sep 7, 2022
1 parent b357f02 commit 6623792
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<!--
TODO: Remove pinned version once arcade supplies a compiler that enables the repo to compile.
-->
<MicrosoftNetCompilersToolsetVersion>4.4.0-2.22412.11</MicrosoftNetCompilersToolsetVersion>
<MicrosoftNetCompilersToolsetVersion>4.4.0-3.22452.8</MicrosoftNetCompilersToolsetVersion>
<StaticCsVersion>0.2.0</StaticCsVersion>
<!-- SDK dependencies -->
<MicrosoftDotNetApiCompatTaskVersion>7.0.100-rc.1.22402.1</MicrosoftDotNetApiCompatTaskVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ public struct RuntimeMethodHandle { }
public struct RuntimeFieldHandle { }

public class Attribute { }
public class AttributeUsageAttribute : Attribute
{
public AttributeUsageAttribute(AttributeTargets targets) { }
public bool AllowMultiple { get; set; }
public bool Inherited { get; set; }
}

public enum AttributeTargets { }

public class ThreadStaticAttribute : Attribute { }

Expand Down
3 changes: 2 additions & 1 deletion src/libraries/System.Runtime/tests/System/Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,11 @@ public static void customAttributeCount()
{
List<CustomAttributeData> customAttributes = typeof(GetCustomAttribute).Module.CustomAttributes.ToList();
// [System.Security.UnverifiableCodeAttribute()]
// [System.Runtime.CompilerServices.RefSafetyRulesAttribute((Int32)11)]
// [TestAttributes.FooAttribute()]
// [TestAttributes.ComplicatedAttribute((Int32)1, Stuff = 2)]
// [System.Diagnostics.DebuggableAttribute((Boolean)True, (Boolean)False)]
Assert.Equal(4, customAttributes.Count);
Assert.Equal(5, customAttributes.Count);
}

[Fact]
Expand Down

0 comments on commit 6623792

Please sign in to comment.