645 references to UnsafeReleaseExe
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (200)
UnsafeEvolutionTests.cs (200)
956options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 963options: TestOptions.UnsafeReleaseExe).VerifyEmitDiagnostics(); 965CreateCompilation(source, options: TestOptions.UnsafeReleaseExe).VerifyEmitDiagnostics(); 967CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 971options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 975options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 992options: TestOptions.UnsafeReleaseExe) 997options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1022CreateCompilation(source, options: TestOptions.UnsafeReleaseExe).VerifyEmitDiagnostics(); 1027CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1031options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1035options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics( 1108CreateCompilation(source, options: TestOptions.UnsafeReleaseExe).VerifyEmitDiagnostics(); 1113CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1117options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1121options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics( 1204options: TestOptions.UnsafeReleaseExe) 1220CreateCompilation(source, options: TestOptions.UnsafeReleaseExe) 1225options: TestOptions.UnsafeReleaseExe) 1228CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1233options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1238options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1264options: TestOptions.UnsafeReleaseExe) 1269options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1319CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1323options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1327options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1437CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1441options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1445options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1498options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1521CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1525options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1529options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1589options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1667options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1737options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1821options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1854CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1858options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1862options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 1924CreateCompilation(source, options: TestOptions.UnsafeReleaseExe).VerifyEmitDiagnostics(); 1929CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1933options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 1937options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics( 2033CreateCompilation(source, options: TestOptions.UnsafeReleaseExe) 2037CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 2043options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 2049options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 2119CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 2123options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 2127options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 2320CreateCompilation(source, options: TestOptions.UnsafeReleaseExe).VerifyEmitDiagnostics(); 2325CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 2329options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 2333options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics( 2437CreateCompilation(source, options: TestOptions.UnsafeReleaseExe).VerifyEmitDiagnostics(expectedWarnings); 2442CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(expectedWarnings); 2446options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(expectedWarnings); 2450options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics( 2664CreateCompilation(source, options: TestOptions.UnsafeReleaseExe).VerifyEmitDiagnostics(); 2669CreateCompilation(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 2673options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics(); 2677options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyEmitDiagnostics( 2699options: TestOptions.UnsafeReleaseExe) 2751CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe) 2756options: TestOptions.UnsafeReleaseExe) 2759CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 2764options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 2769options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 2958options: TestOptions.UnsafeReleaseExe) 2980CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe) 2985options: TestOptions.UnsafeReleaseExe) 2988CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 2993options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 2998options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3147options: TestOptions.UnsafeReleaseExe) 3169CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe) 3174options: TestOptions.UnsafeReleaseExe) 3177CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3182options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3187options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3232CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe) 3235CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3240options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3245options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3292options: TestOptions.UnsafeReleaseExe) 3295CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe) 3300options: TestOptions.UnsafeReleaseExe) 3303CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3308options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3313options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3339CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3381CreateCompilation([source, IsExternalInitTypeDefinition], options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 3383CreateCompilation([source, IsExternalInitTypeDefinition], options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules().WithWarningLevel(10)).VerifyDiagnostics(expectedDiagnostics); 3395CreateCompilation([source, IsExternalInitTypeDefinition], options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyDiagnostics(expectedDiagnostics); 3397CreateCompilation([source, IsExternalInitTypeDefinition], options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules().WithWarningLevel(11)).VerifyDiagnostics(expectedDiagnostics); 3401options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyDiagnostics(expectedDiagnostics); 3405options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()).VerifyDiagnostics( 3434options: TestOptions.UnsafeReleaseExe) 3477CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe) 3482options: TestOptions.UnsafeReleaseExe) 3485CreateCompilationWithSpan([source], options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3490options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3495options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3575options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), 3593options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules().WithMetadataImportOptions(MetadataImportOptions.All), 3612options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 3986options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 4132options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 4137options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 4366options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 4763options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 5680options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 5745options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 5760options: TestOptions.UnsafeReleaseExe) 5794options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 7825options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 7836options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 7848options: TestOptions.UnsafeReleaseExe) 7857options: TestOptions.UnsafeReleaseExe) 7866options: TestOptions.UnsafeReleaseExe) 7973options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 7985options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 7998options: TestOptions.UnsafeReleaseExe) 8009options: TestOptions.UnsafeReleaseExe) 8015options: TestOptions.UnsafeReleaseExe) 8045options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 8057options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 8069options: TestOptions.UnsafeReleaseExe) 8077options: TestOptions.UnsafeReleaseExe) 8083options: TestOptions.UnsafeReleaseExe) 8110options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 8116options: TestOptions.UnsafeReleaseExe, 8153options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 8159options: TestOptions.UnsafeReleaseExe, 8199options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 8215options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 8228options: TestOptions.UnsafeReleaseExe) 8248options: TestOptions.UnsafeReleaseExe) 8254options: TestOptions.UnsafeReleaseExe) 8291options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 8307options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 8320options: TestOptions.UnsafeReleaseExe) 8340options: TestOptions.UnsafeReleaseExe) 8346options: TestOptions.UnsafeReleaseExe) 8406options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 8510options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 8525options: TestOptions.UnsafeReleaseExe) 8539options: TestOptions.UnsafeReleaseExe) 8545options: TestOptions.UnsafeReleaseExe) 8595options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 8613options: TestOptions.UnsafeReleaseExe) 8648options: TestOptions.UnsafeReleaseExe) 8654options: TestOptions.UnsafeReleaseExe) 8684options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 8699options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 8712options: TestOptions.UnsafeReleaseExe) 8726options: TestOptions.UnsafeReleaseExe) 8732options: TestOptions.UnsafeReleaseExe) 8770options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 8793options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 8806options: TestOptions.UnsafeReleaseExe) 8835options: TestOptions.UnsafeReleaseExe) 8841options: TestOptions.UnsafeReleaseExe) 8875options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 8891options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 8904options: TestOptions.UnsafeReleaseExe) 8918options: TestOptions.UnsafeReleaseExe) 8924options: TestOptions.UnsafeReleaseExe) 8953options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 8965options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 8978options: TestOptions.UnsafeReleaseExe) 8986options: TestOptions.UnsafeReleaseExe) 8992options: TestOptions.UnsafeReleaseExe) 9018options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 9029options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 9042options: TestOptions.UnsafeReleaseExe) 9053options: TestOptions.UnsafeReleaseExe) 9059options: TestOptions.UnsafeReleaseExe) 9090options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 9102options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(), 9115options: TestOptions.UnsafeReleaseExe) 9219options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 9259options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 9838options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 9878options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 9962options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10015options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10060options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10146options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10199options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10228options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10306options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10358options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10398options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10474options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10527options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10567options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules()) 10693options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules(),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (226)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
1312var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails);
CodeGen\CodeGenAsyncTests.cs (3)
2020CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 2064CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: releaseSymbolValidator, verify: Verification.Fails) 2123CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "10", symbolValidator: releaseSymbolValidator, verify: Verification.Fails)
CodeGen\CodeGenClosureLambdaTests.cs (1)
2569CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F", verify: Verification.Passes);
CodeGen\CodeGenConditionalOperatorTests.cs (1)
3015CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
CodeGen\CodeGenExprLambdaTests.cs (1)
2125CompileAndVerifyUtil(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: TrimExpectedOutput(expectedOutput), verify: Verification.Fails);
CodeGen\CodeGenFunctionPointersTests.cs (19)
40options: options ?? (expectedOutput is null ? TestOptions.UnsafeReleaseDll : TestOptions.UnsafeReleaseExe), 61var comp = CreateCompilationWithIL(source, ilStub, parseOptions: TestOptions.RegularPreview, options: expectedOutput is null ? TestOptions.UnsafeReleaseDll : TestOptions.UnsafeReleaseExe); 5215}}", options: TestOptions.UnsafeReleaseExe); 5239}}", options: TestOptions.UnsafeReleaseExe); 6271var allSourceComp = CreateCompilationWithFunctionPointers(new[] { executableCode, source1, source2 }, options: TestOptions.UnsafeReleaseExe); 6282var derivedComp = CreateCompilationWithFunctionPointers(new[] { executableCode, source2 }, references: new[] { metadataRef }, options: TestOptions.UnsafeReleaseExe); 7465var verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options: TestOptions.UnsafeReleaseExe); 8326}", il, options: TestOptions.UnsafeReleaseExe); 8454", il, options: TestOptions.UnsafeReleaseExe); 10711", UnmanagedCallersOnlyAttribute }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp); 10948}", options: TestOptions.UnsafeReleaseExe); 10976var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 10983comp = CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe); 11010var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 11026comp = CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe); 11043}", options: TestOptions.UnsafeReleaseExe); 11291", options: TestOptions.UnsafeReleaseExe); 11399}", options: TestOptions.UnsafeReleaseExe); 11911var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe,
CodeGen\CodeGenInParametersTests.cs (2)
1754var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseExe); 1840comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
CodeGen\CodeGenReadonlyStructTests.cs (4)
1114}", TestOptions.UnsafeReleaseExe); 1320}", TestOptions.UnsafeReleaseExe); 1342}", TestOptions.UnsafeReleaseExe); 2578CompileAndVerify(csharp, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: "42");
CodeGen\CodeGenRefConditionalOperatorTests.cs (2)
1228verify(TestOptions.UnsafeReleaseExe, Verification.Fails, @" 1303verify(TestOptions.UnsafeReleaseExe, @"
CodeGen\CodeGenRefLocalTests.cs (6)
91}", options: TestOptions.UnsafeReleaseExe, 4216verify(TestOptions.UnsafeReleaseExe, Verification.Fails, @" 4286verify(TestOptions.UnsafeReleaseExe, @" 4345verify(TestOptions.UnsafeReleaseExe, Verification.Fails, @" 4414verify(TestOptions.UnsafeReleaseExe, Verification.Fails, @" 4467verify(TestOptions.UnsafeReleaseExe, Verification.Fails, @"
CodeGen\CodeGenRefOutTests.cs (5)
516verify(TestOptions.UnsafeReleaseExe, @" 575verify(TestOptions.UnsafeReleaseExe, @" 652verify(TestOptions.UnsafeReleaseExe, @" 723verify(TestOptions.UnsafeReleaseExe, @" 799verify(TestOptions.UnsafeReleaseExe, @"
CodeGen\CodeGenRefReadonlyReturnTests.cs (1)
433}", options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: "NullReferenceException");
CodeGen\CodeGenStackAllocInitializerTests.cs (17)
51options: TestOptions.UnsafeReleaseExe, 124options: TestOptions.UnsafeReleaseExe, 314options: TestOptions.UnsafeReleaseExe, 370options: TestOptions.UnsafeReleaseExe, 411options: TestOptions.UnsafeReleaseExe, 494options: TestOptions.UnsafeReleaseExe, 529options: TestOptions.UnsafeReleaseExe, 569options: TestOptions.UnsafeReleaseExe, 613options: TestOptions.UnsafeReleaseExe, 671options: TestOptions.UnsafeReleaseExe, 727options: TestOptions.UnsafeReleaseExe, 869", options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)); 1050", options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)); 1498verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 1526var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 1580verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 1700options: TestOptions.UnsafeReleaseExe,
CodeGen\CodeGenTests.cs (4)
14930CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"" 16289var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe); 16746var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe); 16770var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe);
CodeGen\FixedSizeBufferTests.cs (11)
50}", options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 115CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails) 176CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Passes) 230CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Passes) 284CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Passes) 461CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails) 529CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails) 597options: TestOptions.UnsafeReleaseExe, 632CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails) 783CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "133", verify: Verification.Fails) 1077}", options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: @"
CodeGen\PatternTests.cs (3)
4608var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 4665var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 4711var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
CodeGen\UnsafeTests.cs (142)
388var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "123", verify: Verification.Fails); 425var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "456", verify: Verification.Fails); 453var compVerifierOptimized = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "2", verify: Verification.Fails); 516var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails); 568var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"Before: 2 7 615var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"ab", verify: Verification.Fails); 663var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 1714var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails); 1732compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails); 1772var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails); 1796compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails); 1847var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 1869compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 1923var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 1946compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 1990var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails); 2028compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails); 2104var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 2224var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 2268var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @" 2297var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "210", verify: Verification.Fails); 2317var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails).VerifyIL("C.Main", @" 2358var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails); 2416var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 2474var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 2544var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 2679var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 2745var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"a", verify: Verification.Fails); 2976var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"hTrue", verify: Verification.Fails); 3047var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails); 3115var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails); 3183var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails); 3254var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"970104", verify: Verification.Fails); 5177var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 5237var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 5292var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_2); 5325var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"0", verify: Verification.Fails); 5376var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 5438var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 5502var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5554var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5601var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5639var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5678var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"20", verify: Verification.Fails); 5752var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456"); 5812var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456"); 5904var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"2123 5993var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456"); 6053var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"23", verify: Verification.Fails); 6136var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"23", verify: Verification.Fails); 6248var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails); 6309var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 6351var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 6390var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_2); 6426var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 6462var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 6498var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 6537var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 6611var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 6639var comp = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 6676var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @""); 6756var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 6803var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"00", verify: Verification.Fails); 6930var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 7005CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 7006CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 7056CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 7057CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 7731CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 7732CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 7897CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails).VerifyIL("C.Main", @" 7960CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1234", verify: Verification.FailsPEVerify).VerifyIL("C.Main", @" 8121CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes).VerifyIL("C.Main", @" 8208CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes).VerifyIL("C.Main", @" 8250CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes).VerifyIL("C.Main", @" 8834CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2147483651 8920CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "4", verify: Verification.Fails).VerifyIL("S.Main", @" 8984CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "4", verify: Verification.Fails).VerifyIL("S.Main", @" 9043CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "I0", verify: Verification.Fails).VerifyIL("S.Main", @" 9111CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "8", verify: Verification.Fails).VerifyIL("S.Main", @" 9218CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("S.Main", @" 9285CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "44", verify: Verification.Fails).VerifyIL("S.Main", @" 9343CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "11", verify: Verification.Fails).VerifyIL("S.Main", @" 9399CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "11", verify: Verification.Fails).VerifyIL("S.Main", @" 9458CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "01", verify: Verification.Fails).VerifyIL("S.Main", @" 9513CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "2", verify: Verification.Fails); 9911CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10012CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10047CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: expectedOutput); 10082CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10091CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 10118CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 10182CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10229CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10259CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Passes, expectedOutput: @" 10309CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes); 10347CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10388CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 10497CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10598CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10633CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10668CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10725CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10782CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10829CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10873CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 10921CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "011010011010", verify: Verification.Fails).VerifyIL("S.Main", @" 11017", options: TestOptions.UnsafeReleaseExe, expectedOutput: @" 11059", options: TestOptions.UnsafeReleaseExe, expectedOutput: @" 11101CreateCompilation(source, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 11107CreateCompilation(source, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 11108CreateCompilation(source, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 11292CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"123 11333var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 11406CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Fails).VerifyIL("T.Main", @" 11429CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Fails).VerifyIL("T.Main", @" 11554CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 11612CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.FailsPEVerify); 11636CompileAndVerify(text, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Passes); 11645CreateCompilation(text, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedPreviewDiagnostics); 11646CreateCompilation(text, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedPreviewDiagnostics); 11933CompileAndVerify(string.Format(template, "int"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 11934CompileAndVerify(string.Format(template, "int*"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 11935CompileAndVerify(string.Format(template, "int**"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 11936CompileAndVerify(string.Format(template, "int[]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 11937CompileAndVerify(string.Format(template, "int[][]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 11938CompileAndVerify(string.Format(template, "int*[]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 11972CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.FailsPEVerify with 12168var comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "ABC", verify: Verification.Fails).VerifyDiagnostics(); 12235CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "b", verify: Verification.Fails); 12279var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "hello", verify: Verification.Fails); 12348var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 12428var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 12544var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails); 12590var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails); 12639var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails); 12681var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F654320F", verify: Verification.Fails); 12724var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Passes); 12778var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "System.Byte[]", verify: Verification.Fails); 12997CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "OK", verify: Verification.Passes); 13022var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.FailsPEVerify); 13054var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0");
Emit\EmitCustomModifiers.cs (3)
45options: TestOptions.UnsafeReleaseExe); 707var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.UnsafeReleaseExe); 741var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.UnsafeReleaseExe);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (11)
CodeGen\IndexAndRangeTests.cs (1)
3625var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe);
Emit\NumericIntPtrTests.cs (9)
1334var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9436var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9517var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 11056var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11060comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11696var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11713var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11754var comp = CreateCompilation(new[] { TestSources.Span, source }, options: TestOptions.UnsafeReleaseExe); 11757comp = CreateCompilation(new[] { source }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
Emit\UnmanagedTypeModifierTests.cs (1)
1474CompileAndVerify(code, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (51)
Attributes\AttributeTests_WellKnownAttributes.cs (2)
11558var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe); 11577var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe, verify: Verification.Passes);
FirstClassSpanTests.cs (5)
2002options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress), 2161options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 2399options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 2632options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 5177CreateCompilationWithSpanAndMemoryExtensions(source, TestOptions.UnsafeReleaseExe, TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
FlowAnalysis\FlowDiagnosticTests.cs (1)
2347CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "");
RefReadonlyParameterTests.cs (4)
3318expectedOutput: "555", options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 3340CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 5097expectedOutput: "111", options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 5486options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
RefStructInterfacesTests.cs (11)
23073var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.UnsafeReleaseExe); 23289options: TestOptions.UnsafeReleaseExe, 23319options: TestOptions.UnsafeReleaseExe, 23350options: TestOptions.UnsafeReleaseExe, 23381options: TestOptions.UnsafeReleaseExe, 23412options: TestOptions.UnsafeReleaseExe, 23444options: TestOptions.UnsafeReleaseExe, 23475options: TestOptions.UnsafeReleaseExe, 23506options: TestOptions.UnsafeReleaseExe, 23560options: TestOptions.UnsafeReleaseExe, 23591options: TestOptions.UnsafeReleaseExe,
Semantics\CollectionExpressionTests.cs (14)
7874var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 7901var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 7929var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 7954CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("0, 2, ")); 7979var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80); 8025CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[0, 2], ")); 8047var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("1010")); 8139var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("10200")); 14212options: TestOptions.UnsafeReleaseExe, 24579options: useUnsafe ? TestOptions.UnsafeReleaseExe : TestOptions.ReleaseExe); 44723var comp = CreateCompilation([sourceA, sourceB, s_collectionExtensions], options: TestOptions.UnsafeReleaseExe); 44738CompileAndVerify([sourceA, sourceB, sourceC, s_collectionExtensions], options: TestOptions.UnsafeReleaseExe, expectedOutput: "[1, 2, 3], "); 44771var comp = CreateCompilation([sourceA, sourceB1, s_collectionExtensions], options: TestOptions.UnsafeReleaseExe); 44806CompileAndVerify([sourceA, sourceB2, s_collectionExtensions], options: TestOptions.UnsafeReleaseExe, expectedOutput: "[1, 2, 3], ");
Semantics\ExtensionTests.cs (9)
26671var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 26700var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 26727var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net90); 26812var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 26849var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 26873comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 26911var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseExe); 26949VerifyOperationTreeAndDiagnosticsForTest<FixedStatementSyntax>(src, expectedOperationTree, [], targetFramework: TargetFramework.Net70, compilationOptions: TestOptions.UnsafeReleaseExe); 26977var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe);
Semantics\ExtensionTests2.cs (2)
9917comp = CreateRuntimeAsyncCompilation(src, options: TestOptions.UnsafeReleaseExe); 11246comp = CreateRuntimeAsyncCompilation(src, options: TestOptions.UnsafeReleaseExe);
Semantics\ParamsCollectionTests.cs (2)
13568var comp5 = CreateCompilation(source5, references: [comp1Ref, comp3.ToMetadataReference()], options: TestOptions.UnsafeReleaseExe); 13674var comp5 = CreateCompilation(source5, references: [comp1Ref, comp3.ToMetadataReference()], options: TestOptions.UnsafeReleaseExe);
Semantics\PatternMatchingTests.cs (1)
6521var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IDelegateCreationExpression.cs (1)
2045var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe);
IOperation\IOperationTests_IObjectCreationExpression.cs (1)
1399", options: TestOptions.UnsafeReleaseExe);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (153)
Semantics\DelegateTypeTests.cs (26)
3871CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 4695var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseExe); 11722var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11870var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11911var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 12234CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12279CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12332var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 12398CompileAndVerify(new[] { sourceA, sourceB, sourceC }, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12455CompileAndVerify(new[] { sourceA, sourceB, sourceC }, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12490CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12527CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12554CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12608CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12674CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12737CompileAndVerify(sourceB, references: new[] { refA }, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12794CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12835CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 13087CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 13131CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 13234CreateCompilation(source, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 13367CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: $""" 13390CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: $""" 14540var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 17630CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: "True").VerifyDiagnostics(); 17644CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "4").VerifyDiagnostics();
Semantics\FunctionPointerTests.cs (19)
238}", options: TestOptions.UnsafeReleaseExe); 2051var comp = CreateCompilationWithIL(source, il, options: TestOptions.UnsafeReleaseExe); 2084var comp = CreateCompilationWithIL(code, il, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseExe); 2700", options: TestOptions.UnsafeReleaseExe, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped); 2725", options: TestOptions.UnsafeReleaseExe, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped); 2750", options: TestOptions.UnsafeReleaseExe); 2782", options: TestOptions.UnsafeReleaseExe); 2814", options: TestOptions.UnsafeReleaseExe); 2847", options: TestOptions.UnsafeReleaseExe); 2880", options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp); 2913", options: TestOptions.UnsafeReleaseExe); 2948", expectedOutput: "11", options: TestOptions.UnsafeReleaseExe, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.FailsILVerify : Verification.Skipped); 2978", options: TestOptions.UnsafeReleaseExe); 3005", options: TestOptions.UnsafeReleaseExe); 3035", options: TestOptions.UnsafeReleaseExe); 3062", options: TestOptions.UnsafeReleaseExe); 3259}", options: TestOptions.UnsafeReleaseExe); 3338var comp = CreateCompilationWithFunctionPointers(source, TestOptions.UnsafeReleaseExe); 3834}", options: TestOptions.UnsafeReleaseExe);
Semantics\GenericConstraintsTests.cs (10)
2437options: TestOptions.UnsafeReleaseExe, references: new[] { reference, reference1 }, verify: Verification.Passes, expectedOutput: "123"); 2523options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: string.Join(Environment.NewLine, type, size)).VerifyIL("Test.M<T>", @" 2575options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: "246").VerifyIL("Test.M<T>", @" 2613options: TestOptions.UnsafeReleaseExe, verify: Verification.Passes, expectedOutput: "NotNullableValueTypeConstraint, DefaultConstructorConstraint"); 2638}", options: TestOptions.UnsafeReleaseExe, verify: Verification.Passes, expectedOutput: "4"); 2673}", options: TestOptions.UnsafeReleaseExe, verify: Verification.Passes, expectedOutput: "8"); 3042options: TestOptions.UnsafeReleaseExe, 3929CompileAndVerify(code, options: TestOptions.UnsafeReleaseExe, expectedOutput: "42", verify: Verification.Skipped); 4260options: TestOptions.UnsafeReleaseExe, 4316options: TestOptions.UnsafeReleaseExe,
Semantics\InterpolationTests.cs (1)
3660var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp);
Semantics\NativeIntegerTests.cs (3)
4345var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 13880var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 15840var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe);
Semantics\OperatorTests.cs (1)
12547var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe);
Semantics\OverloadResolutionTests.cs (4)
2741CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"2 9691CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9703CompileAndVerify(source, expectedOutput: "555", options: TestOptions.UnsafeReleaseExe, 9706CompileAndVerify(source, expectedOutput: "555", options: TestOptions.UnsafeReleaseExe,
Semantics\RawInterpolationTests_Handler.cs (1)
2023var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp);
Semantics\RefEscapingTests.cs (1)
15101options: TestOptions.UnsafeReleaseExe,
Semantics\RefFieldTests.cs (8)
628var comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 10454options: (useUnsafe ? TestOptions.UnsafeReleaseExe : null)); 10498options: (useUnsafe ? TestOptions.UnsafeReleaseExe : null)); 10552options: (useUnsafe ? TestOptions.UnsafeReleaseExe : null)); 11314var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 11337comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 18176var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 28921var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeReleaseExe);
Semantics\SemanticErrorTests.cs (5)
16130CreateCompilation(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 16170CreateCompilation(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular14).VerifyDiagnostics( 16189CreateCompilation(text, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedPreviewDiagnostics); 16191CreateCompilation(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedPreviewDiagnostics); 16231var c = CompileAndVerify(text, expectedOutput: "7788", verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe);
Semantics\StackAllocInitializerTests.cs (6)
523}", TestOptions.UnsafeReleaseExe); 778""", TestOptions.UnsafeReleaseExe); 957}", TestOptions.UnsafeReleaseExe); 975}", TestOptions.UnsafeReleaseExe); 1797CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1808CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe).VerifyDiagnostics(
Semantics\StackAllocSpanExpressionsTests.cs (2)
592CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 597CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe).VerifyDiagnostics(
Semantics\UnsafeTests.cs (63)
611CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 620CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 621CompileAndVerify(code, expectedOutput: expectedOutput, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 703var comp = CreateCompilationWithTasksExtensions(code, options: TestOptions.UnsafeReleaseExe); 812CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 813CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 814VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseExe, expectedDiagnostics); 2243CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2244CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2245CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2263CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2264CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2265VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseExe, expectedDiagnostics); 2287CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2288CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2289CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2310CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2311CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2312VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseExe, expectedDiagnostics); 2329CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2330CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2331CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2348CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 2353CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2354CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2375CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2376CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2377VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseExe, expectedDiagnostics); 2390CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 2410CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2434CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2435VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseExe, expectedDiagnostics); 2448CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2449CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2450CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2470CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2471CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2472VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseExe, expectedDiagnostics); 2488CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2489CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2490CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2510CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2511CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2512VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseExe, expectedDiagnostics); 2535CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2536CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2537VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseExe, expectedDiagnostics); 2563CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2564CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2565VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseExe, expectedDiagnostics); 2588CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2599CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2600VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseExe, expectedDiagnostics); 2623CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2624CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2625VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseExe, expectedDiagnostics); 10144CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: "42"); 11960var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 12268var compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 12385var compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 12550options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, 12646CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"246"); 12690CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"4812");
Semantics\UserDefinedConversionTests.cs (3)
1159var verifier = CompileAndVerify(source: source1 + source3 + source5, options: TestOptions.UnsafeReleaseExe, expectedOutput: ""); 1865var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe); 1910var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1392var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9);
Symbols\PartialPropertiesTests.cs (1)
2031var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: "1");