Skip to content

Instantly share code, notes, and snippets.

diff --git a/eng/azure-pipelines.yml b/eng/azure-pipelines.yml
index 3136b3a..e12cb4a 100644
--- a/eng/azure-pipelines.yml
+++ b/eng/azure-pipelines.yml
@@ -119,6 +119,26 @@ stages:
MSBUILDENSURESTDOUTFORTASKPROCESSES: 1
displayName: Build illink.sln $(_BuildConfig)
+ - ${{ if eq(variables.officialBuild, 'false') }}:
+ - job: lint
class C
{
public object m_stateMachine;
public static void Main ()
{
new SS().Foo();
}
<pre><span style=" color: red;">.\iOS</span>
<span style=" color: green;">.\.NET 5.0</span>
<span style=" color: blue;">namespace</span> Microsoft.SqlServer.Server {
<span style=" color: blue;">public</span> <span style=" color: blue;">sealed</span> <span style=" color: blue;">class</span> InvalidUdtException : <span style=" color: #2B91AF;">SystemException</span> {
<span style=" color: red;">public override void GetObjectData(SerializationInfo si, StreamingContext context);</span>
}
<span style=" color: red;">public sealed class SqlProcedureAttribute : Attribute</span>
<span style=" color: red;">public sealed class SqlTriggerAttribute : Attribute</span>
<span style=" color: red;">public sealed class SqlTriggerContext</span>
Restore completed in 100.27 ms for /Users/marek/.nuget/packages/microsoft.dotnet.arcade.sdk/5.0.0-beta.20105.2/tools/Tools.proj.
Unknown CPU i386 detected, treating it as x64
dotnet-install: .NET Core Runtime version 3.0.0 is already installed.
dotnet-install: Adding to current process PATH: `/Users/marek/git/my/linker/.dotnet`. Note: This change will be visible only when sourcing script.
dotnet-install: Installation finished successfully.
Restore completed in 83.02 ms for /Users/marek/git/my/linker/test/Mono.Linker.Tests.Cases.Expectations/Mono.Linker.Tests.Cases.Expectations.csproj.
Restore completed in 114.79 ms for /Users/marek/git/my/linker/external/cecil/symbols/pdb/Mono.Cecil.Pdb.csproj.
Restore completed in 125.4 ms for /Users/marek/git/my/linker/src/analyzer/analyzer.csproj.
Restore completed in 138.51 ms for /Users/marek/git/my/linker/src/linker/Mono.Linker.csproj.
Restore completed in 115.48 ms for /Users/marek/git/my/linker/external/cecil/Mono.Cecil.csproj.
System.TypeAccessException : Attempt by security transparent method 'System.HexConverter.ToString(System.ReadOnlySpan1<Byte>, Casing)' to access security critical type 'System.ReadOnlySpan1<System.Byte>' failed.\n\nAssembly 'System.Diagnostics.DiagnosticSource, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model. Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.
Stack trace
at System.HexConverter.ToString(ReadOnlySpan`1 bytes, Casing casing)
at System.Diagnostics.ActivitySpanId.CreateRandom() in /_/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.cs:line 1201
at System.Diagnostics.Activity.GenerateW3CId() in /_/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.cs:line 740
at System.Diagnostics.Ac
using System;
class X
{
private static ReadOnlySpan<byte> ROS => new byte[10800] {
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x03, 0x02, 0x04, 0x03, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x03, 0x03, 0x03, 0x02,
0x05, 0x06, 0x06, 0x07, 0x08, 0x07, 0x06, 0x06, 0x09, 0x0a, 0x06, 0x0b, 0x0c, 0x0d, 0x0c, 0x0c,
0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0c, 0x06, 0x0f, 0x0f, 0x0f, 0x06,
0x06, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10,
public class Benchmarks
{
static byte[] array = new byte[32];
static int res;
[Params(ulong.MaxValue)]
public ulong Input { get; set; }
[Benchmark]
public bool StringVersion()
[Benchmark]
public char Test_Condition ()
{
return Convert_Condition (14);
}
[Benchmark]
public char Test_String ()
{
--- test-good-managed/mscorlib.il 2019-12-15 12:45:36.000000000 +0100
+++ test-bad-managed/mscorlib.il 2019-12-15 12:45:44.000000000 +0100
@@ -159,7 +159,7 @@
// WARNING: managed resource file charinfo.nlp created
}
.module mscorlib.dll
-// MVID: {65EC3698-9650-4F32-80BC-59D8F76B607B}
+// MVID: {EA925DED-B757-435C-A54C-375D3440FEB6}
.imagebase 0x00400000
.file alignment 0x00000200
./Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Tree/ZeroInitialize.cs: public override object Object => Activator.CreateInstance(Type.AssociatedSystemType);
./Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/ExprFactory.cs: return CreateConstant(type, ConstVal.Get(Activator.CreateInstance(type.AssociatedSystemType)));
./System.Data.OleDb/src/OleDbEnumerator.cs: object value = Activator.CreateInstance(type, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance, null, null, CultureInfo.InvariantCulture, null);
./System.Data.OleDb/src/OleDbWrapper.cs: // DataLinks (the unknown parameter) is created via Activator.CreateInstance outside of the SafeHandle
./System.Data.OleDb/src/OleDbConnectionInternal.cs: return Activator.CreateInstance(datalink, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance, null, null, CultureInfo.InvariantCulture, null);
./System.Linq.Queryable/src/System/