365 references to UnsafeDebugDll
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (41)
CodeGen\CodeGenAsyncIteratorTests.cs (1)
10531comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: [libS2, missingLibS1], targetFramework: TargetFramework.Net80);
CodeGen\CodeGenAwaitForeachTests.cs (1)
1857var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.UnsafeDebugDll);
CodeGen\CodeGenAwaitUsingTests.cs (1)
240var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.UnsafeDebugDll);
CodeGen\CodeGenConstructorInitTests.cs (1)
1151CompileAndVerify(source, options: TestOptions.UnsafeDebugDll, verify: Verification.Skipped).VerifyIL("C..cctor()", @"
CodeGen\CodeGenDeconstructTests.cs (2)
1793var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1837var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
CodeGen\CodeGenFunctionPointersTests.cs (18)
11540CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11592CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11617CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11641CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11704CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 11768CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11830CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11942CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11967CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11994CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12017CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 12044CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12101CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12166CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12192CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12217CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12244CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12400CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics(
CodeGen\CodeGenIterators.cs (1)
4120comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: [libS2, missingLibS1]);
CodeGen\CodeGenRefLocalTests.cs (2)
3879CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Fails).VerifyIL("Program.Main()", @" 3952CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Passes).VerifyIL("Program.Main()", @"
CodeGen\CodeGenTupleEqualityTests.cs (1)
5439var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
CodeGen\CodeGenTupleTest.cs (3)
10393options: TestOptions.UnsafeDebugDll); 10642options: TestOptions.UnsafeDebugDll); 24075var comp = CreateCompilationWithMscorlib461AndCSharp(source, references: s_valueTupleRefs, options: TestOptions.UnsafeDebugDll);
CodeGen\UnsafeTests.cs (10)
89var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 115var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 141var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 167var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 193var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 5439var comp = CreateCompilationWithMscorlib461(source, references: new[] { lib.EmitToImageReference() }, options: TestOptions.UnsafeDebugDll); 7421CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Fails).VerifyIL("C.Test", @" 7529var comp = CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Fails); 10553var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10624var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (19)
Emit\EditAndContinue\EditAndContinueTests.cs (1)
8026var options = TestOptions.UnsafeDebugDll;
Emit\EditAndContinue\LocalSlotMappingTests.cs (2)
1208var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1316var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Emit\EditAndContinue\SymbolMatcherTests.cs (9)
1211var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1245var compilation0 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1296var compilation0 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1520var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1521var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 1580var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1581var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 1650var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1651var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll);
Emit\NumericIntPtrTests.cs (1)
10273var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, targetFramework: TargetFramework.Net70);
Emit\RuntimeProbing\ModuleCancellationTests.cs (1)
28options: options ?? (expectedOutput != null ? TestOptions.UnsafeDebugExe : TestOptions.UnsafeDebugDll),
Emit\RuntimeProbing\StackOverflowProbingTests.cs (1)
27options: options ?? (expectedOutput != null ? TestOptions.UnsafeDebugExe : TestOptions.UnsafeDebugDll),
PDB\PDBTests.cs (3)
7218var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 7418var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 7568var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll);
PDB\PDBUsingTests.cs (1)
467CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, targetFramework: TargetFramework.NetFramework).VerifyPdb(@"
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (61)
Attributes\AttributeTests.cs (9)
10173var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10211var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10872var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10895var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10901comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 10908comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 10922var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10939var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 11576var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Attributes\AttributeTests_WellKnownAttributes.cs (1)
12919var comp = CreateCompilation(new[] { src, skipLocalsInitDef1 }, options: TestOptions.UnsafeDebugDll);
FlowAnalysis\RegionAnalysisTests.cs (2)
9254", options: TestOptions.UnsafeDebugDll); 14139options: TestOptions.UnsafeDebugDll);
RefReadonlyParameterTests.cs (23)
964CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 969var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll); 1028CreateCompilationWithIL(new[] { source, RequiresLocationAttributeDefinition }, ilSource, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1051var comp = CreateCompilationWithIL(new[] { source, RequiresLocationAttributeDefinition }, ilSource, options: TestOptions.UnsafeDebugDll); 1115var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll); 1169var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1217var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll); 1245var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 1269var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1286var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1319var comp2 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly2", options: TestOptions.UnsafeDebugDll); 1331var comp2b = CreateCompilation(source2, new[] { comp1bRef }, assemblyName: "Assembly2", options: TestOptions.UnsafeDebugDll); 1345var comp3 = CreateCompilation(source3, new[] { comp1bRef }, assemblyName: "Assembly3", options: TestOptions.UnsafeDebugDll); 1522var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 1542var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1558var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 1574CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1589CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(expectedDiagnostics); 1590CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(expectedDiagnostics); 7971var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 8046var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 8212var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 8327var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll);
Semantics\CollectionExpressionTests.cs (2)
42706var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 42786var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll);
Semantics\ParamsCollectionTests.cs (4)
13507var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 13519var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.UnsafeDebugDll); 13608var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 13620var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.UnsafeDebugDll);
Semantics\PatternMatchingTests.cs (1)
4462var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll);
Semantics\PatternMatchingTests4.cs (3)
3485CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 3503CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 3522CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
Semantics\PatternMatchingTests5.cs (1)
1069var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.UnsafeDebugDll);
Semantics\PrimaryConstructorTests.cs (11)
12901}", options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12935}", options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12963}", options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12989}", options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 14560var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14590var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14594comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14835var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14852var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 15267var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 15289var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Semantics\RecordTests.cs (4)
1249var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1302var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1352var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1448var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (17)
IOperation\IOperationTests_IAddressOfOperation.cs (2)
60VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 140VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, TestOptions.UnsafeDebugDll);
IOperation\IOperationTests_IFieldReferenceExpression.cs (2)
295VerifyOperationTreeAndDiagnosticsForTest<AssignmentExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 335VerifyOperationTreeAndDiagnosticsForTest<AssignmentExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll);
IOperation\IOperationTests_IFixedStatement.cs (10)
88compilationOptions: TestOptions.UnsafeDebugDll); 168compilationOptions: TestOptions.UnsafeDebugDll); 257compilationOptions: TestOptions.UnsafeDebugDll); 315compilationOptions: TestOptions.UnsafeDebugDll); 383compilationOptions: TestOptions.UnsafeDebugDll); 467VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 562VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 688var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 784VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 915VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll);
IOperation\IOperationTests_INoneOperation.cs (1)
337VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll);
IOperation\IOperationTests_IPointerIndirectionReferenceOperation.cs (2)
58VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 116VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (166)
Semantics\AnonymousFunctionTests.cs (4)
1318var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1357var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1377var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1398var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9);
Semantics\DeconstructionTests.cs (1)
4089options: TestOptions.UnsafeDebugDll,
Semantics\ForEachTests.cs (2)
3322""", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 3356""", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics();
Semantics\FunctionPointerTests.cs (5)
88var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 98comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 105comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 141var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 150comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview);
Semantics\GlobalUsingDirectiveTests.cs (4)
5044CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5063CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5082CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5101CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics();
Semantics\LocalFunctionTests.cs (7)
1452var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1489var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1518var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 2369var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12.WithFeature("run-nullable-analysis", "never")); 2441CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular13.WithFeature("run-nullable-analysis", "never")).VerifyDiagnostics(expectedDiagnostics); 2442CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never")).VerifyDiagnostics(expectedDiagnostics); 4540}", options: TestOptions.UnsafeDebugDll);
Semantics\NameOfTests.cs (1)
1537TestOptions.UnsafeDebugDll).VerifyDiagnostics(
Semantics\NativeIntegerTests.cs (1)
15064var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Semantics\NullableReferenceTypesTests.cs (5)
1378}", options: TestOptions.UnsafeDebugDll); 93738var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.UnsafeDebugDll)); 160685", options: TestOptions.UnsafeDebugDll); 160713", options: TestOptions.UnsafeDebugDll); 160739", options: TestOptions.UnsafeDebugDll);
Semantics\OverloadResolutionTests.cs (3)
608var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugDll); 801var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugDll); 875var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9);
Semantics\RecordStructTests.cs (5)
659var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugDll); 1504var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1560var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1613var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1710var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll);
Semantics\RefEscapingTests.cs (32)
47var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 113}", options: TestOptions.UnsafeDebugDll); 835var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1005var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 2221var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular10); 2231comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 2633var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2666var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2797var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2918var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2947var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3041var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3195var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3277var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3364var comp = CreateCompilation(tree, targetFramework: TargetFramework.Net90, options: TestOptions.UnsafeDebugDll); 3447var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3784var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3829var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3994var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 4184var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 4657var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4985var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5009var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5033var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5083var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5133var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5185var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5212var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5470CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 6340var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 9755var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 9842var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll);
Semantics\RefFieldTests.cs (8)
2534var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 2847var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 5346var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 17858var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 18827var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 18849var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 21045var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 28248var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll);
Semantics\RefLocalsAndReturnsTests.cs (4)
835}", options: TestOptions.UnsafeDebugDll); 1902var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 2446var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 2529var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll);
Semantics\SemanticErrorTests.cs (2)
9403CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 24831var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Semantics\StackAllocInitializerTests.cs (1)
1620CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
Semantics\StackAllocSpanExpressionsTests.cs (1)
471CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
Semantics\UnsafeTests.cs (63)
59options: TestOptions.UnsafeDebugDll); 78options: TestOptions.UnsafeDebugDll); 5914var libComp = CreateCompilation(libSrc, options: TestOptions.UnsafeDebugDll); 5934var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll, references: new[] { libComp.EmitToImageReference() }); 5993var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll); 11368CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 11785var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12596}", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 12630}", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 12656}", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 12683}", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 12712var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12800var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12816var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12851var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12877var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12900var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12920var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12938var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12962var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12983var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12998var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13011var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13024var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13046var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13065var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13083var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13117var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13136var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13157var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13183var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13203var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13228var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13247var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13265var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13274comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13300var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13309comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13329var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13348comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13381var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13403comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13423var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13444comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13485var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13500comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13520var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13542comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13562var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13571comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13593var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13660comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13718comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13721comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13787comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13863comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13866comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13900comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13906comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13909comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13932var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13939comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13942comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview);
Semantics\UseSiteErrorTests.cs (17)
2484var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2494comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2511var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2520comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2536var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2545comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2563var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2590comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2610var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2632comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2652var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2667comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2692var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2707comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2738comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2752var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2769comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (27)
Compilation\UsedAssembliesTests.cs (2)
3834Compilation comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: references, options: TestOptions.UnsafeDebugDll); 3841AssertUsedAssemblyReferences(source, references, references, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugDll);
Symbols\AnonymousTypesSemanticsTests.cs (3)
1917var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1934var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1955var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Symbols\GenericConstraintTests.cs (7)
1012CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 5841CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 6477CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 6500CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 6525CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 6540CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 7005var compilation = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12);
Symbols\Source\BaseClassTests.cs (1)
2339comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12);
Symbols\Source\ClsComplianceTests.cs (3)
561var lib1 = CreateCompilation(libSource1, assemblyName: "lib1", options: TestOptions.UnsafeDebugDll).EmitToImageReference(); 562var lib2 = CreateCompilation(libSource2, assemblyName: "lib2", options: TestOptions.UnsafeDebugDll).EmitToImageReference(); 563var lib3 = CreateCompilation(libSource3, assemblyName: "lib3", options: TestOptions.UnsafeDebugDll).EmitToImageReference();
Symbols\Source\FileModifierTests.cs (1)
2896var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Symbols\Source\PropertyTests.cs (1)
2896CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
Symbols\Source\UsingAliasTests.cs (6)
778CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 844CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 915CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 936""", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1003""", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1022""", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
Symbols\SymbolErrorTests.cs (3)
4517CreateCompilationWithMscorlib46(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12) 4520CreateCompilationWithMscorlib46(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11) 16770CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Parsing\ParserErrorMessageTests.cs (5)
4671CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4697CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4717CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4737CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4888CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
Parsing\RefReadonlyTests.cs (2)
45var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), options: TestOptions.UnsafeDebugDll); 90var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), options: TestOptions.UnsafeDebugDll);
Parsing\RefStructs.cs (1)
230}", TestOptions.UnsafeDebugDll).GetParseDiagnostics().Verify();
Parsing\UsingDirectiveParsingTests.cs (24)
659CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 771CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1108CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1156CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1231CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1304CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1379CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1466CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2096CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2173CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 2248CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2329CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2405CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2473CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4086CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4180CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4285CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4401CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4500CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4580CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4701CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4863CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 5020CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5177CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
CSharpFunctionResolverTests.cs (1)
512var compilation = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Microsoft.CodeAnalysis.UnitTests (1)
Symbols\DocumentationCommentIdTests.cs (1)
173var comp = CreateCSharpCompilation(text, compilationOptions: TestOptions.UnsafeDebugDll).VerifyDiagnostics();