935 references to UnsafeReleaseDll
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (134)
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)
1537var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2452var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 3219options: 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)); 7563var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7583var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7632var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7652var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 9705", UnmanagedCallersOnlyAttribute }, options: TestOptions.UnsafeReleaseDll); 11916CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
CodeGen\CodeGenInParametersTests.cs (1)
1267var 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)
1026var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1050var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1093var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1172var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 2566var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2614var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2665var 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)
28963", options: TestOptions.UnsafeReleaseDll, symbolValidator: symbolValidator);
CodeGen\FixedSizeBufferTests.cs (19)
328CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 361CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 398CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 569var comp1 = CompileAndVerify(s1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).Compilation; 640CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 665CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 692CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 714CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 798CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 827CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 856CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 912CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 953CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 978CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes, 1010CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes, 1067}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1091}", options: TestOptions.UnsafeReleaseDll); 1122}", options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 1152var 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\PatternTests.cs (3)
122var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 152var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 200var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll);
CodeGen\UnsafeTests.cs (66)
32var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes); 59var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 219var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes); 244var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 291var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 338var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 1586var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 2325CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2387CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2450CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2506CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2567CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2628CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2688CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2764CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2848CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2978CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3029CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3094CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3178CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3258CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3314CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3359CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3413CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3463CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3515CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3569CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3622CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3676CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3726CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3776CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3825CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3865CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3906CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3964CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4028CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4095CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 5956CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 6046CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 6136CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @" 6226CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @" 6367CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6368CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6430CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6431CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6636CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 6637CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 6705CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 6706CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 7156CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 7221CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 7286CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 7351CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 10013CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 10070CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 10107CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @" 10340var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10684CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.Test", @" 10827var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with 10849var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with 10903var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10927CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyDiagnostics( 10950var comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyDiagnostics(); 11315var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.Passes); 11339var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.FailsPEVerify); 11357var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll);
CodeGen\WinMdDelegateTests.cs (1)
153options: TestOptions.UnsafeReleaseDll,
Emit\CompilationEmitTests.cs (3)
4253var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4491var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4548var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (13)
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 (10)
328var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 365comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 429var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 485comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1363CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 1377CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 1408CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 1409CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 9904var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 11812options: TestOptions.UnsafeReleaseDll,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (98)
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)
1333var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1357var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1558", 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)
145var reference = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).EmitToImageReference(); 146var 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)
10428return CompileAndVerifyWithSkipLocalsInit(src, TestOptions.UnsafeReleaseDll, parseOptions, verify ?? Verification.Fails); 10502var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10537var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10570var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); 10603var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); 10695var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 10820var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10850var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10910var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11537var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11578var comp1 = CompileAndVerify(source1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11614var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11662var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11696var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11733var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11764var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11809var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); 11810var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11847var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 11890var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); 11891var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll); 11933var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11985var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12057var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12092var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12165var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12226var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12255var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 12301var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 12419var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12469var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12524var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12582var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12629var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12658var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12799var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 13040var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); 13086var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); 13113var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: TestOptions.UnsafeReleaseDll);
Diagnostics\OperationAnalyzerTests.cs (1)
1386CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeReleaseDll)
FirstClassSpanTests.cs (1)
1993var spanDll = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll)
FlowAnalysis\FlowTests.cs (2)
1640CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1688CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
RefReadonlyParameterTests.cs (8)
914var verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeReleaseDll, 1369var comp1v1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1385var comp2 = CreateCompilation(source2, new[] { comp1v1Ref }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1416var comp1v2 = CreateCompilation(source1, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1430var comp1v3 = CreateCompilation(new[] { source1, source5 }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1437var comp1v4 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1477assemblyName: "Assembly2", options: TestOptions.UnsafeReleaseDll); 1489var 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\PatternMatchingTests4.cs (1)
3831CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
Semantics\PrimaryConstructorTests.cs (17)
13014CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13039CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 13058CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13085CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13117CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13149CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13183CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13221CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13265CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13298CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13335CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13396CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expected); 13426CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13489CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expected); 13520CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13562CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 21909var 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)
92VerifyOperationTreeAndDiagnosticsForTest<SizeOfExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.UnsafeReleaseDll);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (632)
Semantics\AccessCheckTests.cs (1)
1516}", 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 (8)
697CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 716CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 739CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll) 766CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1214CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1253CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1505TestOptions.UnsafeReleaseDll); 3299CreateCompilationWithMscorlib461(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)
21return CreateCompilation(source, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: parseOptions, targetFramework: targetFramework ?? TargetFramework.Standard); 2003var comp = CreateCompilationWithIL(source, il, options: TestOptions.UnsafeReleaseDll); 2120var 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)
780var 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)
6529var 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)
2839""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2870""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2901""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2923""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2948""", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\NativeIntegerTests.cs (10)
1893var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 1930comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 2056var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 2112comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 4373CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4382CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4401CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 4402CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 4416var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9); 14370var 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)); 3560CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 83079var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.UnsafeReleaseDll)); 144959var spanRef = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll) 156285}", 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)
1111var 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); 7859var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview); 10595var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview);
Semantics\RefEscapingTests.cs (2)
6225}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6251}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\RefFieldTests.cs (34)
564var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 726var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 772var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 821var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 904var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1002var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1095var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1160var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1236var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1279comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1316var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1350var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1395var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1440var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1487var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1488var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1543var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1544var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1595var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1596var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1651var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1652var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 10157var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseDll); 10566options: (useUnsafe ? TestOptions.UnsafeReleaseDll : null)); 10799var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 10812comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB), options: TestOptions.UnsafeReleaseDll); 16944var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 16976var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 20129var comp = CreateCompilation(sourceB, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 24784var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 29819var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll); 29851var comp = CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseDll); 30245var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 30296var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Semantics\RefLocalsAndReturnsTests.cs (6)
4772}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4800}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4828}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4856}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4884}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4915}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\SemanticErrorTests.cs (32)
7482var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8144CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8194CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8237CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8308CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8333CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8362CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8854CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8890CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8979CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9079CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9103CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9127CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10961CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 12278CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15333CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 15361CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 15362CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 15466CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15833CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16425CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16455CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16484CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16549CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16952CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 17473CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 18782var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options: TestOptions.UnsafeReleaseDll); 18830var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll); 20208CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 22640CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 22663CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 24258CreateCompilationWithMscorlib461(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\SpanStackSafetyTests.cs (2)
2008options: TestOptions.UnsafeReleaseDll); 2049options: TestOptions.UnsafeReleaseDll);
Semantics\StackAllocInitializerTests.cs (34)
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( 1506}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2119CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2283CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2354}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2460}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2547}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2637}", TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\StackAllocSpanExpressionsTests.cs (17)
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( 412}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 781CreateEmptyCompilation(code, references, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 810CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 836CreateCompilationWithMscorlibAndSpan(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 (381)
106CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 123CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 144CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 170CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 186CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 190CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 205CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 209CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 239compilationOptions: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false), 246CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 262CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 278CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 283CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 284CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 301CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 306CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 307CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 324CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 329CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 330CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 348CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 353CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 354CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 379CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 397CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 398CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 421CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 445CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 446CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 468CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 492CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 493CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 513CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 535CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 559CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 583CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 639CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 644CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 645CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 664CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 676CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 677CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 754CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 755CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 853CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 873CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 878CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 879CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 900CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 905CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 906CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 924CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 936CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 937CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 955CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 964CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 965CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 983CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 984CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 985CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 1006CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1015CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1016CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1034CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1043CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1044CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1066CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1075CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1076CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1098CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1107CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1108CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1126CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1138CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1139CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1157CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1158CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1159CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1179CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1180CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1181CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1202CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1203CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1204CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1227CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1228CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1229CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1245CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1246CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1247CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1263CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1268CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1269CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1292CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1293CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1294CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1309CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1329CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1348CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1366CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1389CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1390CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1415CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1416CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1437CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1438CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1439CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1462CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1463CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1464CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1485CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1486CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1487CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1510CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1511CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1512CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1528CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1529CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1530CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1546CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1551CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1552CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1575CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1576CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1577CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1592CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1611CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1634CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1635CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1657CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1658CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1659CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1683CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1684CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1685CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1707CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1708CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1709CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1736CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1737CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1738CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1755CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1756CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1757CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1774CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1779CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1780CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1804CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1805CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1806CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1822CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1848CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1877CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1878CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1905CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1906CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1928CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1929CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1930CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1954CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1955CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1956CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1978CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1979CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1980CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2007CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2008CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2009CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2026CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2027CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2028CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2045CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2050CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2051CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2075CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2076CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2077CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2093CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2119CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2148CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2149CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2176CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2177CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2595CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2596CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2597CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2620CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2643var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 3181CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3193CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3198CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3213CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 3214CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 3217CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3231CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 3232CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 3249CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3256CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3259CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3265CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3266CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 3269CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3275CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3276CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 3293CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3317CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3360CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3373CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 3377CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3395CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3419CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4171CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithoutUnsafe); 4174CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 4177CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 4180CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 5188var compilation = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll); 5312var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 5379var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 6144CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6170CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6194CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6218CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6248CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6264CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6367var compilation = CreateCompilation(tree, new[] { metadata }, TestOptions.UnsafeReleaseDll); 6414CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6432CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6474CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6497CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6543CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6640CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6791CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6825CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6870CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6927CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6947CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6967CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6986CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7007CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7029CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7052CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7073CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7096CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7120CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7147CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7169CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7187CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7210CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7233CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7253var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7290var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7319var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7357var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7395var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7436CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7451CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7470CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7488CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7507CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7531var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7568CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7585CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7600CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7618CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7636CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7655CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7673CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7692CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7750CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7795CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7841var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7908var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7967CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7985CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8005CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8025CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8044CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8062CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8086}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8107}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8128}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8154var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8221var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8279var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8339var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8375var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8416CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8469CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8519CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8557CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8667CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8744CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8785CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8817CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8851var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8905var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8943CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8987CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9056CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9130CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9151CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9167CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9191CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9211CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9249CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9274CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9317var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 9374CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9418CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9513CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9533CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9555CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9581CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9603CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9653CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9687CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9726CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9766CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9801CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9824CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 9828CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9855CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9900CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9936CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9956CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9986CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10008CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10061CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 10091CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10121CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10143CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10173var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10214var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10286var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10353CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10478CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10509CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10560CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10845CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10927CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11024CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11057CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11080CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11113CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11166CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 11176CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 11197CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 11202CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 11220CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11241CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 11250CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics( 11264CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics( 11277CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics( 11301var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11381CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11408CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11421CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11457CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedWithUnsafe); 11461CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedWithUnsafe); 11465CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 11512CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11540CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11587CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11623CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11675CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11697CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11734CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11758CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11803var comp = CreateCompilation(tree, options: TestOptions.UnsafeReleaseDll); 11851CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11873var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11900var comp = CreateCompilation(tree, options: TestOptions.UnsafeReleaseDll); 11936CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11959CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12041CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12057CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 12080CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 12329CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12412var comp1 = CompileAndVerify(s1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).Compilation; 12466options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails, 12568}", 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 (46)
SymbolDisplay\SymbolDisplayTests.cs (1)
8632var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Symbols\ConversionTests.cs (1)
2336CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Symbols\FunctionPointerTypeSymbolTests.cs (3)
23return CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: targetFramework); 1956", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9); 2082", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9);
Symbols\GenericConstraintTests.cs (1)
340CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Symbols\PartialPropertiesTests.cs (2)
2036var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2075var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Symbols\RequiredMembersTests.cs (1)
203", options: TestOptions.UnsafeReleaseDll);
Symbols\Retargeting\RetargetingTests.cs (2)
975}}", new[] { retargeted1Ref, consistentRef, ilRef }, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard); 980options: 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 (25)
2846CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2876CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2893CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2915CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9347CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9362CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11975CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 14465CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14824", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15468var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 15482var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 15498CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15513CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15528CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15540CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15555CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15582CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15600CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15615CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15629CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15646CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15680CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15705CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15726CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15917CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
CSharpTestBase.cs (6)
2261options: TestOptions.UnsafeReleaseDll); 2279options: TestOptions.UnsafeReleaseDll); 2298options: options ?? TestOptions.UnsafeReleaseDll, 2330var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2347var reference = CreateCompilation(new[] { TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2365var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();