1126 references to UnsafeReleaseDll
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (94)
UnsafeEvolutionTests.cs (94)
44optionsDll ??= TestOptions.UnsafeReleaseDll; 3115CreateCompilation(source, options: TestOptions.UnsafeReleaseDll) 3118CreateCompilation(source, options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 3656options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules(apiUpdatedRules)) 4728options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 4817options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 4834options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 4853options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 5328options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 5723options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules().WithMetadataImportOptions(MetadataImportOptions.All)) 5836optionsDll: TestOptions.UnsafeReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 6091options: TestOptions.UnsafeReleaseDll) 6114options: TestOptions.UnsafeReleaseDll) 6131options: TestOptions.UnsafeReleaseDll) 6149options: TestOptions.UnsafeReleaseDll) 6160options: TestOptions.UnsafeReleaseDll) 6171options: TestOptions.UnsafeReleaseDll) 6185options: TestOptions.UnsafeReleaseDll) 6202options: TestOptions.UnsafeReleaseDll) 6223CreateCompilation(source, options: TestOptions.UnsafeReleaseDll) 6225CreateCompilation(source, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll) 6228CreateCompilation(source, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll) 6641options: TestOptions.UnsafeReleaseDll) 6664options: TestOptions.UnsafeReleaseDll) 6681options: TestOptions.UnsafeReleaseDll) 6699options: TestOptions.UnsafeReleaseDll) 6710options: TestOptions.UnsafeReleaseDll) 6721options: TestOptions.UnsafeReleaseDll) 6735options: TestOptions.UnsafeReleaseDll) 6752options: TestOptions.UnsafeReleaseDll) 6773CreateCompilation(source, options: TestOptions.UnsafeReleaseDll) 6775CreateCompilation(source, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll) 6778CreateCompilation(source, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll) 6839options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 6865options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 6885options: TestOptions.UnsafeReleaseDll) 7168options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 7189optionsDll: TestOptions.UnsafeReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 7606options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 7813options: TestOptions.UnsafeReleaseDll, 7959options: TestOptions.UnsafeReleaseDll, 8031options: TestOptions.UnsafeReleaseDll, 8098options: TestOptions.UnsafeReleaseDll, 8141options: TestOptions.UnsafeReleaseDll, 8183options: TestOptions.UnsafeReleaseDll, 8275options: TestOptions.UnsafeReleaseDll, 8372options: TestOptions.UnsafeReleaseDll) 8474options: TestOptions.UnsafeReleaseDll) 8559options: TestOptions.UnsafeReleaseDll) 8670options: TestOptions.UnsafeReleaseDll, 8753options: TestOptions.UnsafeReleaseDll, 8860options: TestOptions.UnsafeReleaseDll, 8939options: TestOptions.UnsafeReleaseDll, 9006options: TestOptions.UnsafeReleaseDll, 9077options: TestOptions.UnsafeReleaseDll, 9210options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 9250options: TestOptions.UnsafeReleaseDll) 9706optionsDll: TestOptions.UnsafeReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 9829options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 9869options: TestOptions.UnsafeReleaseDll) 9967options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 9972options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 9979options: TestOptions.UnsafeReleaseDll) 9984options: TestOptions.UnsafeReleaseDll) 10006options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10051options: TestOptions.UnsafeReleaseDll) 10151options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10156options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10163options: TestOptions.UnsafeReleaseDll) 10168options: TestOptions.UnsafeReleaseDll) 10190options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10311options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10316options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10323options: TestOptions.UnsafeReleaseDll) 10328options: TestOptions.UnsafeReleaseDll) 10349options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10389options: TestOptions.UnsafeReleaseDll) 10479options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10484options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10491options: TestOptions.UnsafeReleaseDll) 10496options: TestOptions.UnsafeReleaseDll) 10518options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10558options: TestOptions.UnsafeReleaseDll) 10624options: TestOptions.UnsafeReleaseDll, 10637options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules(), 10649options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10674options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10709options: TestOptions.UnsafeReleaseDll, 10718options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules(), 10750options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules(), 10777options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules(), 10788options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()) 10850options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules() 11196options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules())
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (157)
BreakingChanges.cs (1)
776CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
CodeGen\CodeGenCheckedTests.cs (1)
391var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
CodeGen\CodeGenDynamicTests.cs (1)
14056CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
CodeGen\CodeGenExprLambdaTests.cs (3)
1181var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2096var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2872options: TestOptions.UnsafeReleaseDll,
CodeGen\CodeGenFunctionPointersTests.cs (18)
40options: options ?? (expectedOutput is null ? TestOptions.UnsafeReleaseDll : TestOptions.UnsafeReleaseExe), 48return CreateCompilation(source, references: references, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview, targetFramework: targetFramework ?? TargetFramework.Net50); 56return CreateCompilation(source, references: references, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Empty); 61var comp = CreateCompilationWithIL(source, ilStub, parseOptions: TestOptions.RegularPreview, options: expectedOutput is null ? TestOptions.UnsafeReleaseDll : TestOptions.UnsafeReleaseExe); 70return CreateCompilationWithIL(source, ilStub, references: references, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Empty); 2593}", references: new[] { nopiaReference }, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeReleaseDll).EmitToImageReference(); 2630}", references: new[] { aRef }, assemblyName: "B", parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeReleaseDll).EmitToImageReference(); 2639}", references: new[] { aRef, bRef }, assemblyName: "C", parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeReleaseDll); 2660}", references: new[] { aRef }, assemblyName: "B", parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeReleaseDll).EmitToImageReference(); 2669}", references: new[] { aRef, bRef }, assemblyName: "C", parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeReleaseDll); 5026", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview); 5395var comp = CreateCompilationWithFunctionPointers(source, options: WithNullableEnable(TestOptions.UnsafeReleaseDll)); 7561var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7581var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7630var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7650var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 9703", UnmanagedCallersOnlyAttribute }, options: TestOptions.UnsafeReleaseDll); 11937CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
CodeGen\CodeGenInParametersTests.cs (1)
1270var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseDll);
CodeGen\CodeGenMscorlib.cs (4)
153var c = CreateEmptyCompilation(text, options: TestOptions.UnsafeReleaseDll); 880var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1037var comp = CreateEmptyCompilation(text, options: TestOptions.UnsafeReleaseDll); 1163var comp = CreateEmptyCompilation(text, options: TestOptions.UnsafeReleaseDll);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2751}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (7)
949var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 973var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1016var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1095var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 2489var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2537var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2588var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll);
CodeGen\CodeGenRefReadonlyReturnTests.cs (1)
688var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseDll);
CodeGen\CodeGenRefReturnTests.cs (2)
1303CompileAndVerifyRef(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("Program.Main()", @" 1492CompileAndVerifyRef(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("Program.Main()", @"
CodeGen\CodeGenTupleTest.cs (1)
28975", options: TestOptions.UnsafeReleaseDll, symbolValidator: symbolValidator);
CodeGen\FixedSizeBufferTests.cs (21)
337CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 370CreateCompilation(source, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 389CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedPreviewDiagnostics); 390CreateCompilation(source, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedPreviewDiagnostics); 420CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 594var comp1 = CompileAndVerify(s1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).Compilation; 665CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 690CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 717CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 739CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 823CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 852CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 881CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 937CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 978CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 1003CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes, 1035CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes, 1092}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1116}", options: TestOptions.UnsafeReleaseDll); 1147}", options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 1177var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Mscorlib40, assemblyName: "fixedBuffer");
CodeGen\ForeachTest.cs (1)
66}", options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("Test.Main", @"
CodeGen\IndexAndRangeTests.cs (1)
4705options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics().EmitToImageReference();
CodeGen\PatternTests.cs (3)
123var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 153var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 201var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll);
CodeGen\UnsafeTests.cs (86)
33var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes); 60var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 235var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes); 260var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 307var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 354var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 715CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 768CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 813CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M1", """ 863CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M1", """ 911CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 960CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 1008CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 1049CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 1093CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 1184CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 1233CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 1282CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("S.M", """ 1329CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("S.M", """ 1375CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("S.M", """ 1421CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("S.M", """ 1469CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 1519CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 1569CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 1618CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 1671CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.M", """ 2606var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 3345CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3407CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3470CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3526CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3587CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3648CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3708CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3784CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3868CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3998CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4049CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4114CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4198CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4278CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4334CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4379CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4433CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4483CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4535CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4589CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4642CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4696CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4746CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4796CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4845CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4885CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4926CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4984CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 5048CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 5115CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 7093CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 7183CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 7273CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @" 7363CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @" 7504CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 7505CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 7567CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 7568CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 7773CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 7774CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 7842CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 7843CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 8293CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 8358CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 8423CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 8488CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 11152CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 11209CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 11246CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @" 11479var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11849CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.Test", @" 11992var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with 12014var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with 12068var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 12092CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyDiagnostics( 12115var comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyDiagnostics(); 12480var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.Passes); 12504var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.FailsPEVerify); 12522var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll);
CodeGen\WinMdDelegateTests.cs (1)
153options: TestOptions.UnsafeReleaseDll,
Emit\CompilationEmitTests.cs (3)
4335var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4573var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4630var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (15)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (3)
4686CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.Test", @" 4722CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll).VerifyIL("C<T>.Test", @" 4762CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.Test<T>", @"
Emit\NumericIntPtrTests.cs (12)
334var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 371comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 435var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 491comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1369CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 1383CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 1414CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 1415CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular14, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 1417CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 1418CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 9913var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 11821options: TestOptions.UnsafeReleaseDll,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (106)
Attributes\AttributeTests_Dynamic.cs (2)
103var comp = CreateCompilationWithMscorlib40(s_dynamicTestSource, options: TestOptions.UnsafeReleaseDll, references: new[] { SystemCoreRef, ValueTupleRef, SystemRuntimeFacadeRef }); 562var comp = CreateCompilationWithMscorlib46(s_dynamicTestSource, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseDll);
Attributes\AttributeTests_NativeInteger.cs (3)
1335var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1359var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1560", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, symbolValidator: symbolValidator);
Attributes\AttributeTests_Security.cs (2)
1303var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.UnsafeReleaseDll); 1383var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.UnsafeReleaseDll);
Attributes\AttributeTests_Synthesized.cs (2)
159var reference = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).EmitToImageReference(); 160var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.UnsafeReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Attributes\AttributeTests_Tuples.cs (2)
117options: TestOptions.UnsafeReleaseDll, 239options: TestOptions.UnsafeReleaseDll,
Attributes\AttributeTests_WellKnownAttributes.cs (39)
10468return CompileAndVerifyWithSkipLocalsInit(src, TestOptions.UnsafeReleaseDll, parseOptions, verify ?? Verification.Fails); 10542var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10577var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10610var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); 10643var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); 10735var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 10860var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10890var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10950var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11616var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11657var comp1 = CompileAndVerify(source1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11693var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11741var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11775var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11812var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11843var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11888var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); 11889var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11926var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 11969var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); 11970var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll); 12012var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12064var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12136var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12171var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12244var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12305var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12334var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 12380var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 12498var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12548var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12603var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12661var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12708var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12737var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12878var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 13119var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); 13165var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); 13192var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: TestOptions.UnsafeReleaseDll);
Diagnostics\OperationAnalyzerTests.cs (1)
1386CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeReleaseDll)
FirstClassSpanTests.cs (1)
1994var spanDll = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll)
FlowAnalysis\FlowTests.cs (2)
1640CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1688CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
PartialEventsAndConstructorsTests.cs (4)
3068CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3093CreateCompilation(source, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3104CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3105CreateCompilation(source, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
RefReadonlyParameterTests.cs (8)
938var verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeReleaseDll, 1393var comp1v1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1409var comp2 = CreateCompilation(source2, new[] { comp1v1Ref }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1440var comp1v2 = CreateCompilation(source1, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1454var comp1v3 = CreateCompilation(new[] { source1, source5 }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1461var comp1v4 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1501assemblyName: "Assembly2", options: TestOptions.UnsafeReleaseDll); 1513var comp3 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly3", options: TestOptions.UnsafeReleaseDll);
RefUnsafeInIteratorAndAsyncTests.cs (18)
251CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 266CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 267CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 286CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 301CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 302CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 324CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 336CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 337CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 418CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 430CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 431CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 573CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 588CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 589CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 838CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 850CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 851CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
Semantics\PatternMatchingTests_ListPatterns.cs (4)
9500var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 9539var compilation = CreateCompilation([source, TestSources.Index], options: TestOptions.UnsafeReleaseDll); 9578var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 9617var compilation = CreateCompilation([source, TestSources.Index], options: TestOptions.UnsafeReleaseDll);
Semantics\PatternMatchingTests4.cs (1)
3834CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
Semantics\PrimaryConstructorTests.cs (17)
13155CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13180CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 13199CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13226CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13258CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13290CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13324CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13362CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13406CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13439CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13476CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13537CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expected); 13567CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13630CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expected); 13661CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13703CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 22098var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (6)
IOperation\FunctionPointerOperations.cs (1)
19return CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9);
IOperation\IOperationTests_IConversionExpression.cs (4)
2934compilationOptions: TestOptions.UnsafeReleaseDll, 2966compilationOptions: TestOptions.UnsafeReleaseDll, 3002compilationOptions: TestOptions.UnsafeReleaseDll, 3037compilationOptions: TestOptions.UnsafeReleaseDll,
IOperation\IOperationTests_ISizeOfExpression.cs (1)
104VerifyOperationTreeAndDiagnosticsForTest<SizeOfExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.UnsafeReleaseDll);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (686)
Semantics\AccessCheckTests.cs (1)
1518}", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9);
Semantics\ArglistTests.cs (2)
1543CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1567CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\BindingAsyncTests.cs (10)
694CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 710CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 730CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular14) 756CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll) 758CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularNext) 772CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1271CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1310CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1562TestOptions.UnsafeReleaseDll); 3292CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\BindingTests.cs (1)
2038CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\DynamicTests.cs (12)
58CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 616CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 831var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 1278var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1281comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 1891CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2152var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2336CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2366CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2842var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 2845comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2876CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\FunctionPointerTests.cs (3)
22return CreateCompilation(source, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: parseOptions, targetFramework: targetFramework ?? TargetFramework.Standard); 2005var comp = CreateCompilationWithIL(source, il, options: TestOptions.UnsafeReleaseDll); 2122var comp = CreateCompilationWithIL("", il, references: new[] { cComp.ToMetadataReference() }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll);
Semantics\GenericConstraintsTests.cs (51)
2873}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2925}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3133}", options: TestOptions.UnsafeReleaseDll); 3163}", options: TestOptions.UnsafeReleaseDll); 3189}", options: TestOptions.UnsafeReleaseDll); 3218}", options: TestOptions.UnsafeReleaseDll); 3258}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3296CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3320CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3350CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3385CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3414CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3417CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 3457CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3464CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 3492CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3534CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3558var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3578var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3599var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3623var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3654var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3679var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3707var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3735var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3763var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3794var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3830var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3862var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3890var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3962CompileAndVerify(code, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped) 4001CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4008CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4031CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4040CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4057CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4064CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4081CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4087CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4104CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4110CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4127CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4134CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4154CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4161CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4184CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4194CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4221CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4231CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 4284CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4341CreateCompilation(code, options: TestOptions.UnsafeReleaseDll)
Semantics\ImplicitObjectCreationTests.cs (1)
775var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Semantics\InterpolationTests.cs (1)
1113var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
Semantics\LocalFunctionTests.cs (1)
6877var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Semantics\NamedAndOptionalTests.cs (1)
774var c = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify);
Semantics\NameLengthTests.cs (1)
555var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Semantics\NameOfTests.cs (5)
2884""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2915""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2946""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2968""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2993""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\NativeIntegerTests.cs (12)
1898var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 1935comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 2061var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 2117comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 4378CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4387CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4406CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 4407CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular14).VerifyDiagnostics(expectedDiagnostics); 4409CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4410CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(); 4424var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9); 14378var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll);
Semantics\NullableReferenceTypesTests.cs (8)
1609CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2219}", TestOptions.UnsafeReleaseDll); 2667var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2693var comp = CreateCompilation(source, options: WithNullable(TestOptions.UnsafeReleaseDll, NullableContextOptions.Enable)); 3567CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 83180var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.UnsafeReleaseDll)); 145070var spanRef = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll) 156456}", parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll);
Semantics\OperatorTests.cs (2)
1686CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4767", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
Semantics\OverloadResolutionTests.cs (1)
7002CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
Semantics\RawInterpolationTests.cs (1)
1109var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
Semantics\ReadOnlyStructsTests.cs (1)
513var comp = CreateCompilation(csharp, options: TestOptions.UnsafeReleaseDll);
Semantics\RecordStructTests.cs (3)
571var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll); 7928var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview); 10664var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview);
Semantics\RefEscapingTests.cs (4)
4445CreateCompilation([source, UnscopedRefAttributeDefinition], options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4520CreateCompilation([source, UnscopedRefAttributeDefinition], options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9907}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9933}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\RefFieldTests.cs (41)
590var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 752var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular14); 793comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 796comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.RegularNext); 820var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 869var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 952var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1050var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular14); 1121comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1124comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.RegularNext); 1165var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1230var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1306var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular14); 1356comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1359comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.RegularNext); 1377comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1414var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1448var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1493var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1538var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1585var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1586var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1641var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1642var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1693var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1694var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1749var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1750var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 10291var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseDll); 10700options: (useUnsafe ? TestOptions.UnsafeReleaseDll : null)); 10933var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 10946comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB), options: TestOptions.UnsafeReleaseDll); 17046var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 17078var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 20230var comp = CreateCompilation(sourceB, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 25369var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 30662var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll); 30694var comp = CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseDll); 31088var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 31139var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 32263var spanCompilation = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8);
Semantics\RefLocalsAndReturnsTests.cs (6)
4766}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4794}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4822}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4850}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4878}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4909}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\SemanticErrorTests.cs (32)
7527var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8189CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8239CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8282CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8353CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8378CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8407CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8908CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8944CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9033CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9133CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9157CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9181CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11015CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 12332CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15452CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 15480CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 15481CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 15585CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15952CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16549CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16579CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16608CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16673CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 17076CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 17597CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 18906var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options: TestOptions.UnsafeReleaseDll); 18954var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll); 20332CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 22764CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 22787CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 24382CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll)
Semantics\SpanStackSafetyTests.cs (2)
2005options: TestOptions.UnsafeReleaseDll); 2046options: TestOptions.UnsafeReleaseDll);
Semantics\StackAllocInitializerTests.cs (36)
59", TestOptions.UnsafeReleaseDll); 136", TestOptions.UnsafeReleaseDll); 201", TestOptions.UnsafeReleaseDll); 254", TestOptions.UnsafeReleaseDll); 307", TestOptions.UnsafeReleaseDll); 353}", TestOptions.UnsafeReleaseDll); 426}", TestOptions.UnsafeReleaseDll); 732}", TestOptions.UnsafeReleaseDll); 755}", TestOptions.UnsafeReleaseDll); 793}", TestOptions.UnsafeReleaseDll); 812}", TestOptions.UnsafeReleaseDll); 831}", TestOptions.UnsafeReleaseDll); 852}", TestOptions.UnsafeReleaseDll); 879}", TestOptions.UnsafeReleaseDll); 904}", TestOptions.UnsafeReleaseDll); 927}", TestOptions.UnsafeReleaseDll); 1028}", TestOptions.UnsafeReleaseDll); 1130}", TestOptions.UnsafeReleaseDll); 1218}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1318}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1334}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1350}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1380}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1397}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1430}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1445}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1473}", options: TestOptions.UnsafeReleaseDll, parseOptions: parseOptions).VerifyDiagnostics( 1507CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular14).VerifyDiagnostics( 1519CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1520CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(); 2143CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2307CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2378}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2484}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2571}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2661}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\StackAllocSpanExpressionsTests.cs (19)
43}", TestOptions.UnsafeReleaseDll); 117}", TestOptions.UnsafeReleaseDll); 183}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 243}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 257}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 271}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 289}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 304}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 331}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 345CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 353CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 373}", options: TestOptions.UnsafeReleaseDll, parseOptions: parseOptions).VerifyDiagnostics( 393}", options: TestOptions.UnsafeReleaseDll, parseOptions: parseOptions).VerifyDiagnostics( 413CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular14).VerifyDiagnostics( 418CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 419CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(); 785CreateEmptyCompilation(code, references, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 814CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 840CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\StructConstructorTests.cs (2)
3406var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular10); 3418comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11);
Semantics\TargetTypedDefaultTests.cs (1)
2722CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_1)
Semantics\TypeOfTests.cs (5)
53""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 67""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 83""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 99""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 118""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\UnsafeTests.cs (418)
107CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 124CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 145CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 171CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 187CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 191CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 206CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 210CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 240compilationOptions: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false), 247CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 263CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 279CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 284CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 285CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 302CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 307CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 308CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 325CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 330CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 331CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 349CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 354CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 355CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 380CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 398CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 399VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 422CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 446CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 447VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 469CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 493CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 494VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 514CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 536CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 560CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 584CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 640CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 645CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 646CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 665CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 677CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 678VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 755CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 756VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 854CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 874CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 879CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 880CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 901CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 906CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 907CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 925CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 937CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 938VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 956CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 965CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 966VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 984CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 985CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 986CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 1007CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1016CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1017VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1035CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1044CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1045VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1067CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1076CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1077VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1099CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1108CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1109VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1127CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1139CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1140VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1158CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1159CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1160CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1180CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1181CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1182VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1203CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1204CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1205CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1228CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1229CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1230VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1246CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1247CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1248CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1264CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1269CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1270CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1293CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1294CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1295VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1310CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1330CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1349CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1367CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1390CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1391VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1416CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1417VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1438CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1439CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1440CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1463CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1464CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1465VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1486CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1487CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1488CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1511CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1512CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1513VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1529CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1530CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1531CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1547CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1552CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1553CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1576CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1577CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1578VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1593CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1612CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1635CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1636VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1658CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1659CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1660CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1684CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1685CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1686VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1708CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1709CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1710CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1737CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1738CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1739VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1756CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1757CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1758CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1775CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1780CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1781CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1805CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1806CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1807VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1823CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1849CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1878CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1879VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1906CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1907VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1929CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1930CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1931CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1955CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1956CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1957VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 1979CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1980CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1981CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2008CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2009CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2010VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 2027CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2028CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2029CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2046CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2051CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2052CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2076CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2077CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2078VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 2094CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2120CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2149CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2150VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 2177CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2178VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, expectedDiagnostics); 2195CreateCompilation(code, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2200CreateCompilation(code, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2201CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2218CreateCompilation(code, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2223CreateCompilation(code, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2224CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2642CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2643CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2644CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2667CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2690var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 3238CreateCompilation(withoutUnsafe, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3249CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3252CreateCompilation(withoutUnsafe, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3257CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3262CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3277CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 3278CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 3281CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3295CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 3296CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 3313CreateCompilation(withoutUnsafe, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3319CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3320CreateCompilation(withoutUnsafe, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3323CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3326CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3332CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3333CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 3336CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3342CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3343CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 3360CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3384CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3427CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3440CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 3444CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3462CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3486CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4256CreateCompilation(withoutUnsafe, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithoutUnsafe); 4261CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(previewExpected); 4265CreateCompilation(withoutUnsafe, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(previewExpected); 4268CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 4271CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 4274CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 5295var compilation = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll); 5419var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 5486var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 6251CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6277CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6301CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6325CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6355CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6371CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6474var compilation = CreateCompilation(tree, new[] { metadata }, TestOptions.UnsafeReleaseDll); 6521CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6539CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6581CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6604CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6650CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6747CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6898CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6932CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6977CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7034CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7054CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7074CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7093CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7114CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7136CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7159CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7180CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7203CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7227CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7254CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7276CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7294CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7317CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7340CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7360var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7397var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7426var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7464var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7502var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7543CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7558CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7577CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7595CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7614CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7638var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7675CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7692CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7707CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7725CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7743CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7762CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7780CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7799CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7857CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7902CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7948var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8015var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8074CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8092CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8112CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8132CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8151CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8169CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8193}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8214}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8235}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8261var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8328var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8386var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8446var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8482var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8523CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8576CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8626CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8664CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8774CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8851CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8892CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8924CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8958var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 9012var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 9050CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9094CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9163CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9237CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9258CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9274CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9298CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9318CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9356CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9381CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9424var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 9481CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9525CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9620CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9640CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9662CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9688CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9710CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9760CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9794CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9833CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9873CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9908CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9931CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 9935CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9962CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10007CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10043CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10063CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10093CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10115CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10168CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 10198CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10228CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10250CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10280var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10321var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10393var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10460CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10588CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10619CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10670CreateCompilation(text, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10696CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedPreviewDiagnostics); 10697CreateCompilation(text, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedPreviewDiagnostics); 10973CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11055CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11152CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11185CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11208CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11241CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11294CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 11304CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 11325CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 11330CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 11348CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11369CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 11378CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics( 11392CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics( 11405CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics( 11429var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11509CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11536CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11539CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithUpdatedMemorySafetyRules()).VerifyDiagnostics(expected); 11552CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11588CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedWithUnsafe); 11592CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedWithUnsafe); 11596CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 11643CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11671CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11718CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11754CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11806CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11828CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11865CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11889CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11938var comp = CreateCompilation(tree, options: TestOptions.UnsafeReleaseDll); 11986CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12008var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 12035var comp = CreateCompilation(tree, options: TestOptions.UnsafeReleaseDll); 12071CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12094CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12176CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12192CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 12215CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 12464CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12547var comp1 = CompileAndVerify(s1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).Compilation; 12601options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails, 12703}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 13564parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 13569CreateCompilation(src1, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 13570CreateCompilation(src1, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 13578parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 13583CreateCompilation(src2, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 13584CreateCompilation(src2, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 13596parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 13601CreateCompilation(src1, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 13602CreateCompilation(src1, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 13610parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 13615CreateCompilation(src2, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 13616CreateCompilation(src2, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 14792CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14811CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14833CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14853CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14874CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14894CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14910VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, 14931CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14950VerifyUnsafeContextDiagnostics(code, TestOptions.UnsafeReleaseDll, 14974CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\UserDefinedConversionTests.cs (1)
1151var comp = CreateCompilation(source1 + source2 + source3 + source4 + source5, options: TestOptions.UnsafeReleaseDll);
Semantics\UseSiteErrorTests.cs (1)
2260CSharpCompilationOptions options = TestOptions.UnsafeReleaseDll;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (56)
SymbolDisplay\SymbolDisplayTests.cs (1)
8919var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Symbols\ConversionTests.cs (1)
2337CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Symbols\FunctionPointerTypeSymbolTests.cs (3)
23return CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: targetFramework); 1950", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9); 2076", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9);
Symbols\GenericConstraintTests.cs (1)
340CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Symbols\PartialPropertiesTests.cs (4)
2063var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2102var comp = CreateCompilation(source, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll); 2108comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2111comp = CreateCompilation(source, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll);
Symbols\RequiredMembersTests.cs (1)
203", options: TestOptions.UnsafeReleaseDll);
Symbols\Retargeting\RetargetingTests.cs (2)
978}}", new[] { retargeted1Ref, consistentRef, ilRef }, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard); 983options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9,
Symbols\Source\ClsComplianceTests.cs (8)
442CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 565CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 762CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 849CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 1181CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1228CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1271CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2935CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Symbols\SymbolDistinguisherTests.cs (2)
233var libRef = CreateCompilation(tree, assemblyName: "Metadata", options: TestOptions.UnsafeReleaseDll).EmitToImageReference(); 234var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source", options: TestOptions.UnsafeReleaseDll);
Symbols\SymbolErrorTests.cs (33)
2846CreateCompilation(text, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2864CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedPreviewDiagnostics); 2865CreateCompilation(text, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedPreviewDiagnostics); 2886CreateCompilation(text, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2904CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedPreviewDiagnostics); 2905CreateCompilation(text, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedPreviewDiagnostics); 2916CreateCompilation(text, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2921CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2922CreateCompilation(text, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2941CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular14, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2946CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2947CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.RegularNext, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9440CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9455CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12068CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 14558CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14917", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15561var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 15575var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 15591CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15606CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15621CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15633CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15648CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15675CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15693CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15708CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15722CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15739CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15773CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15798CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15819CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16010CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
CSharpTestBase.cs (6)
2878options: TestOptions.UnsafeReleaseDll); 2896options: TestOptions.UnsafeReleaseDll); 2915options: options ?? TestOptions.UnsafeReleaseDll, 2947var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2964var reference = CreateCompilation(new[] { TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2982var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();