489 references to UnsafeDebugDll
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (1)
UnsafeEvolutionTests.cs (1)
4432
optionsDll: TestOptions.
UnsafeDebugDll
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (63)
CodeGen\CodeGenAsyncIteratorTests.cs (1)
11007
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: [libS2, missingLibS1], targetFramework: TargetFramework.Net80);
CodeGen\CodeGenAwaitForeachTests.cs (1)
2723
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.
UnsafeDebugDll
);
CodeGen\CodeGenAwaitUsingTests.cs (1)
290
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.
UnsafeDebugDll
);
CodeGen\CodeGenConstructorInitTests.cs (1)
1151
CompileAndVerify(source, options: TestOptions.
UnsafeDebugDll
, verify: Verification.Skipped).VerifyIL("C..cctor()", @"
CodeGen\CodeGenDeconstructTests.cs (2)
1793
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
1837
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
CodeGen\CodeGenFunctionPointersTests.cs (18)
11529
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
11581
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
11606
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
11630
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
11693
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
11757
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
11819
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
11931
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
11956
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
11983
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
12006
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
12033
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
12090
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
12155
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
12181
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
12206
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
12233
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
12393
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
CodeGen\CodeGenIterators.cs (1)
4181
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: [libS2, missingLibS1]);
CodeGen\CodeGenRefLocalTests.cs (2)
3888
CompileAndVerify(text, options: TestOptions.
UnsafeDebugDll
, verify: Verification.Fails).VerifyIL("Program.Main()", @"
3961
CompileAndVerify(text, options: TestOptions.
UnsafeDebugDll
, verify: Verification.Passes).VerifyIL("Program.Main()", @"
CodeGen\CodeGenTupleEqualityTests.cs (1)
5439
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
CodeGen\CodeGenTupleTest.cs (3)
10393
options: TestOptions.
UnsafeDebugDll
);
10642
options: TestOptions.
UnsafeDebugDll
);
24075
var comp = CreateCompilationWithMscorlib461AndCSharp(source, references: s_valueTupleRefs, options: TestOptions.
UnsafeDebugDll
);
CodeGen\UnsafeTests.cs (31)
90
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
);
116
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
);
142
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
);
168
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
);
194
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
);
686
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
732
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
782
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M1", """
830
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M1", """
877
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
926
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
978
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
1019
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
1063
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
1149
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
1203
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
1251
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("S.M", """
1298
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("S.M", """
1345
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("S.M", """
1390
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("S.M", """
1436
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
1486
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
1536
CompileAndVerify(source, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
1583
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
1637
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeDebugDll
).VerifyIL("C.M", """
6194
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
6561
var comp = CreateCompilationWithMscorlib461(source, references: new[] { lib.EmitToImageReference() }, options: TestOptions.
UnsafeDebugDll
);
8543
CompileAndVerify(text, options: TestOptions.
UnsafeDebugDll
, verify: Verification.Fails).VerifyIL("C.Test", @"
8651
var comp = CompileAndVerify(text, options: TestOptions.
UnsafeDebugDll
, verify: Verification.Fails);
11675
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
11746
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Emit\EmitMetadataTests.cs (1)
3218
var ref2 = CreateEmptyCompilation(source2, [ref1], options: TestOptions.
UnsafeDebugDll
, assemblyName: "Encoding")
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (23)
Emit\EditAndContinue\EditAndContinueTests.cs (1)
8943
var options = TestOptions.
UnsafeDebugDll
;
Emit\EditAndContinue\LocalSlotMappingTests.cs (2)
1208
var compilation0 = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
1316
var compilation0 = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Emit\EditAndContinue\SymbolMatcherTests.cs (9)
1212
var compilation0 = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular9);
1246
var compilation0 = CreateCompilation(source1, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular9);
1297
var compilation0 = CreateCompilation(source1, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular9);
1521
var compilation0 = CreateCompilation(source0, options: TestOptions.
UnsafeDebugDll
);
1522
var compilation1 = CreateCompilation(source1, options: TestOptions.
UnsafeDebugDll
);
1581
var compilation0 = CreateCompilation(source0, options: TestOptions.
UnsafeDebugDll
);
1582
var compilation1 = CreateCompilation(source1, options: TestOptions.
UnsafeDebugDll
);
1651
var compilation0 = CreateCompilation(source0, options: TestOptions.
UnsafeDebugDll
);
1652
var compilation1 = CreateCompilation(source1, options: TestOptions.
UnsafeDebugDll
);
Emit\LocalStateTracing\LocalStateTracingTests.cs (4)
196
options: (expectedOutput != null) ? TestOptions.UnsafeDebugExe : TestOptions.
UnsafeDebugDll
,
206
options: (expectedOutput != null) ? TestOptions.UnsafeDebugExe : TestOptions.
UnsafeDebugDll
,
441
var compilation0 = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, targetFramework: s_targetFramework);
554
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, targetFramework: s_targetFramework);
Emit\NumericIntPtrTests.cs (1)
10279
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net70);
Emit\RuntimeProbing\ModuleCancellationTests.cs (1)
22
options: options ?? (expectedOutput != null ? TestOptions.UnsafeDebugExe : TestOptions.
UnsafeDebugDll
),
Emit\RuntimeProbing\StackOverflowProbingTests.cs (1)
21
options: options ?? (expectedOutput != null ? TestOptions.UnsafeDebugExe : TestOptions.
UnsafeDebugDll
),
PDB\PDBTests.cs (3)
7218
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugDll
);
7418
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugDll
);
7568
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugDll
);
PDB\PDBUsingTests.cs (1)
467
CompileAndVerify(text, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.NetFramework).VerifyPdb(@"
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (126)
Attributes\AttributeTests.cs (9)
10175
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
10213
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
10874
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
10897
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
10903
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12);
10910
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
10924
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
10941
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
11578
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Attributes\AttributeTests_WellKnownAttributes.cs (1)
12998
var comp = CreateCompilation(new[] { src, skipLocalsInitDef1 }, options: TestOptions.
UnsafeDebugDll
);
FlowAnalysis\RegionAnalysisTests.cs (2)
9254
", options: TestOptions.
UnsafeDebugDll
);
14139
options: TestOptions.
UnsafeDebugDll
);
RefReadonlyParameterTests.cs (23)
988
CreateCompilationWithIL(source, ilSource, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
993
var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.
UnsafeDebugDll
);
1052
CreateCompilationWithIL(new[] { source, RequiresLocationAttributeDefinition }, ilSource, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
1075
var comp = CreateCompilationWithIL(new[] { source, RequiresLocationAttributeDefinition }, ilSource, options: TestOptions.
UnsafeDebugDll
);
1139
var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.
UnsafeDebugDll
);
1193
var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
1241
var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.
UnsafeDebugDll
);
1269
var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugDll
);
1293
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
1310
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
1343
var comp2 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly2", options: TestOptions.
UnsafeDebugDll
);
1355
var comp2b = CreateCompilation(source2, new[] { comp1bRef }, assemblyName: "Assembly2", options: TestOptions.
UnsafeDebugDll
);
1369
var comp3 = CreateCompilation(source3, new[] { comp1bRef }, assemblyName: "Assembly3", options: TestOptions.
UnsafeDebugDll
);
1546
var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics();
1566
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
1582
var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugDll
);
1598
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
1613
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(expectedDiagnostics);
1614
CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(expectedDiagnostics);
7977
var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugDll
);
8052
var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugDll
);
8218
var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugDll
);
8333
var comp1 = CreateCompilation(source1, options: TestOptions.
UnsafeDebugDll
);
Semantics\CollectionExpressionTests.cs (2)
45712
var comp1 = CreateCompilation(source1, options: TestOptions.
UnsafeDebugDll
);
45792
var comp1 = CreateCompilation(source1, options: TestOptions.
UnsafeDebugDll
);
Semantics\ExtensionOperatorsTests.cs (2)
25072
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeDebugDll
);
25180
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeDebugDll
);
Semantics\ExtensionTests.cs (13)
5121
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
12927
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
);
26757
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
29514
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
30343
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
42604
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
42625
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
42694
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
44829
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
50433
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
50457
comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
51057
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
51080
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
Semantics\ExtensionTests2.cs (50)
24181
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
24201
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
24221
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
24234
CompileAndVerify(src2, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90, verify: Verification.FailsPEVerify).VerifyTypeIL("C", """
24421
CompileAndVerify(src2, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90, verify: Verification.FailsPEVerify).VerifyTypeIL("C`1", """
24806
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
24827
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
24846
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
24930
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
24950
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
24970
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
24990
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25010
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25030
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25050
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25073
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25094
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25115
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25136
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25149
CompileAndVerify(src2, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90, verify: Verification.FailsPEVerify).VerifyTypeIL("C", """
25171
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25185
CompileAndVerify(src2, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90, verify: Verification.FailsPEVerify).VerifyTypeIL("C", """
25207
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25221
CompileAndVerify(src2, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90, verify: Verification.FailsPEVerify).VerifyTypeIL("C", """
25243
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25257
CompileAndVerify(src2, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90, verify: Verification.FailsPEVerify).VerifyTypeIL("C", """
25281
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25303
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25323
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25337
CompileAndVerify(src2, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90, verify: Verification.FailsPEVerify).VerifyTypeIL("C", """
25358
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25380
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25405
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25430
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
25584
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
25598
CompileAndVerify(src2, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90, verify: Verification.FailsPEVerify).VerifyTypeIL("C", """
25625
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
25650
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
26841
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
27477
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
27644
var comp = CreateCompilationWithIL(src, ilSrc, options: TestOptions.
UnsafeDebugDll
);
27680
var comp = CreateCompilationWithIL(src, ilSrc, options: TestOptions.
UnsafeDebugDll
);
27735
var comp = CreateCompilationWithIL(src, ilSrc, options: TestOptions.
UnsafeDebugDll
);
27792
var comp = CreateCompilationWithIL(src, ilSrc, options: TestOptions.
UnsafeDebugDll
);
27818
comp = CreateCompilationWithIL("", ilSrc, options: TestOptions.
UnsafeDebugDll
);
27950
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
30057
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
30632
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
30650
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
30668
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Net90);
Semantics\ParamsCollectionTests.cs (4)
13491
var comp1 = CreateCompilation(source1, options: TestOptions.
UnsafeDebugDll
);
13503
var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.
UnsafeDebugDll
);
13592
var comp1 = CreateCompilation(source1, options: TestOptions.
UnsafeDebugDll
);
13604
var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.
UnsafeDebugDll
);
Semantics\PatternMatchingTests.cs (1)
4462
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugDll
);
Semantics\PatternMatchingTests4.cs (3)
3484
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
3502
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
3525
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
Semantics\PatternMatchingTests5.cs (1)
1070
var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.
UnsafeDebugDll
);
Semantics\PrimaryConstructorTests.cs (11)
13042
}", options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
13076
}", options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
13104
}", options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
13130
}", options: TestOptions.
UnsafeDebugDll
).VerifyEmitDiagnostics(
14701
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
14731
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
14735
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
14976
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
14993
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
15408
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
15430
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Semantics\RecordTests.cs (4)
1244
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Mscorlib461);
1300
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Mscorlib461);
1353
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Mscorlib461);
1508
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Mscorlib461);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (17)
IOperation\IOperationTests_IAddressOfOperation.cs (2)
60
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeDebugDll
);
140
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, TestOptions.
UnsafeDebugDll
);
IOperation\IOperationTests_IFieldReferenceExpression.cs (2)
295
VerifyOperationTreeAndDiagnosticsForTest<AssignmentExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeDebugDll
);
335
VerifyOperationTreeAndDiagnosticsForTest<AssignmentExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeDebugDll
);
IOperation\IOperationTests_IFixedStatement.cs (10)
88
compilationOptions: TestOptions.
UnsafeDebugDll
);
168
compilationOptions: TestOptions.
UnsafeDebugDll
);
257
compilationOptions: TestOptions.
UnsafeDebugDll
);
315
compilationOptions: TestOptions.
UnsafeDebugDll
);
383
compilationOptions: TestOptions.
UnsafeDebugDll
);
467
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeDebugDll
);
562
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeDebugDll
);
688
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
784
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedGraph, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeDebugDll
);
915
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedGraph, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeDebugDll
);
IOperation\IOperationTests_INoneOperation.cs (1)
337
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeDebugDll
);
IOperation\IOperationTests_IPointerIndirectionReferenceOperation.cs (2)
58
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeDebugDll
);
116
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeDebugDll
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (192)
Semantics\AnonymousFunctionTests.cs (4)
1318
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular9);
1357
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular9);
1377
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular9);
1398
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular9);
Semantics\DeconstructionTests.cs (1)
4089
options: TestOptions.
UnsafeDebugDll
,
Semantics\ForEachTests.cs (2)
3838
""", options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics();
3872
""", options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics();
Semantics\FunctionPointerTests.cs (5)
89
var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
99
comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12);
106
comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview);
142
var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
151
comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview);
Semantics\GlobalUsingDirectiveTests.cs (4)
5044
CreateCompilation(new[] { source1, source2 }, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
5063
CreateCompilation(new[] { source1, source2 }, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(
5082
CreateCompilation(new[] { source1, source2 }, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(
5101
CreateCompilation(new[] { source1, source2 }, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics();
Semantics\LocalFunctionTests.cs (7)
1446
var compWithUnsafe = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
1483
var compWithUnsafe = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
1512
var compWithUnsafe = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
2361
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12.WithFeature(Feature.RunNullableAnalysis, "never"));
2435
CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular13.WithFeature(Feature.RunNullableAnalysis, "never")).VerifyDiagnostics(expectedDiagnostics);
2436
CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview.WithFeature(Feature.RunNullableAnalysis, "never")).VerifyDiagnostics(expectedDiagnostics);
4847
}", options: TestOptions.
UnsafeDebugDll
);
Semantics\NameOfTests.cs (1)
1538
TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
Semantics\NativeIntegerTests.cs (1)
15069
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Semantics\NullableReferenceTypesTests.cs (5)
1378
}", options: TestOptions.
UnsafeDebugDll
);
93861
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.
UnsafeDebugDll
));
160868
", options: TestOptions.
UnsafeDebugDll
);
160896
", options: TestOptions.
UnsafeDebugDll
);
160922
", options: TestOptions.
UnsafeDebugDll
);
Semantics\NullConditionalAssignmentTests.cs (10)
952
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
986
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
1012
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
2918
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
3243
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
3268
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
3294
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
3315
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
3333
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
3352
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Semantics\OverloadResolutionTests.cs (3)
608
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeDebugDll
);
801
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeDebugDll
);
875
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular9);
Semantics\RecordStructTests.cs (6)
659
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeDebugDll
);
1511
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Mscorlib461);
1569
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Mscorlib461);
1625
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Mscorlib461);
1678
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Mscorlib461);
1781
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.Mscorlib461);
Semantics\RefEscapingTests.cs (35)
49
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
115
}", options: TestOptions.
UnsafeDebugDll
);
837
var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
1007
var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
2223
var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular10);
2233
comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
2635
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
2668
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
2799
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
2920
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
2949
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
3043
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
3197
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
3279
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
3366
var comp = CreateCompilation(tree, targetFramework: TargetFramework.Net90, options: TestOptions.
UnsafeDebugDll
);
3449
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
3786
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
3831
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
3996
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
4076
var comp = CreateCompilationWithSpan([code, UnscopedRefAttributeDefinition], TestOptions.
UnsafeDebugDll
, TestOptions.Regular11);
4120
var comp = CreateCompilationWithSpan([code, UnscopedRefAttributeDefinition], TestOptions.
UnsafeDebugDll
, TestOptions.Regular11);
4186
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
6886
CreateCompilation([source, UnscopedRefAttributeDefinition, InterpolatedStringHandlerAttribute], options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
7402
var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
7733
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeDebugDll
);
7757
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeDebugDll
);
7781
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeDebugDll
);
7831
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeDebugDll
);
7881
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeDebugDll
);
7933
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeDebugDll
);
7960
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeDebugDll
);
8218
CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
9541
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
13113
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
13200
var comp = CreateCompilationWithSpan(tree, TestOptions.
UnsafeDebugDll
);
Semantics\RefFieldTests.cs (8)
2596
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.
UnsafeDebugDll
);
2909
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
5408
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.
UnsafeDebugDll
);
17888
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
18856
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.
UnsafeDebugDll
);
18878
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
21074
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
28780
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.
UnsafeDebugDll
);
Semantics\RefLocalsAndReturnsTests.cs (4)
832
}", options: TestOptions.
UnsafeDebugDll
);
1899
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
);
2443
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
);
2526
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
);
Semantics\SemanticErrorTests.cs (2)
9448
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
24949
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Semantics\StackAllocInitializerTests.cs (1)
1620
CreateCompilation(test, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
Semantics\StackAllocSpanExpressionsTests.cs (1)
471
CreateCompilation(test, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
Semantics\UnsafeTests.cs (75)
60
options: TestOptions.
UnsafeDebugDll
);
79
options: TestOptions.
UnsafeDebugDll
);
5915
var libComp = CreateCompilation(libSrc, options: TestOptions.
UnsafeDebugDll
);
5935
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
, references: new[] { libComp.EmitToImageReference() });
5994
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugDll
);
11369
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics();
11789
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
12600
}", options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
12634
}", options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
12660
}", options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
12687
}", options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
12716
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
12804
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
12820
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
12855
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
12881
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
12904
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
12924
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
12942
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
12966
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
12987
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13002
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13015
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13028
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13050
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13069
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13087
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13121
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13140
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13161
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13187
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13207
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13232
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13251
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13317
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13326
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13352
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13361
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
13381
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
13400
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12);
13433
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
13455
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12);
13475
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
13496
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12);
13537
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
13552
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview);
13572
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
13594
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview);
13614
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
13623
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview);
13645
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview);
13712
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
13770
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12);
13773
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview);
13839
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
13915
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12);
13918
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview);
13952
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
13958
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12);
13961
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview);
13984
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11);
13991
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12);
13994
comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.RegularPreview);
14020
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
14046
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
14073
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
14101
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
14127
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.NetCoreApp);
14153
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.NetCoreApp);
14183
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
14213
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
14243
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
14274
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
);
14304
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.NetCoreApp);
14340
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeDebugDll
, targetFramework: TargetFramework.NetCoreApp);
Semantics\UseSiteErrorTests.cs (17)
2484
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref2 });
2494
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2511
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref2 });
2520
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2536
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref2 });
2545
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2563
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref2 });
2590
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2610
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref2 });
2632
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2652
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref2 });
2667
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2692
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref2 });
2707
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2738
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2752
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref2 });
2769
comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (33)
Compilation\UsedAssembliesTests.cs (2)
3834
Compilation comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: references, options: TestOptions.
UnsafeDebugDll
);
3841
AssertUsedAssemblyReferences(source, references, references, parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeDebugDll
);
DocumentationComments\CrefTests.cs (1)
7118
options: TestOptions.
UnsafeDebugDll
,
Symbols\AnonymousTypesSemanticsTests.cs (3)
1917
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
1934
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
1955
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Symbols\ExtensionMethodTests.cs (4)
4187
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
4232
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
4277
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
4322
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Symbols\GenericConstraintTests.cs (8)
1012
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
5882
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics();
6518
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
6541
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
6566
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics();
6581
CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics();
7047
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12);
7538
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Symbols\Source\BaseClassTests.cs (1)
2340
comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12);
Symbols\Source\ClsComplianceTests.cs (3)
561
var lib1 = CreateCompilation(libSource1, assemblyName: "lib1", options: TestOptions.
UnsafeDebugDll
).EmitToImageReference();
562
var lib2 = CreateCompilation(libSource2, assemblyName: "lib2", options: TestOptions.
UnsafeDebugDll
).EmitToImageReference();
563
var lib3 = CreateCompilation(libSource3, assemblyName: "lib3", options: TestOptions.
UnsafeDebugDll
).EmitToImageReference();
Symbols\Source\FileModifierTests.cs (1)
2896
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Symbols\Source\PropertyTests.cs (1)
2897
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
Symbols\Source\UsingAliasTests.cs (6)
778
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
844
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
915
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics();
936
""", options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
1003
""", options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
1022
""", options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
Symbols\SymbolErrorTests.cs (3)
4517
CreateCompilationWithMscorlib46(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12)
4520
CreateCompilationWithMscorlib46(source, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11)
16834
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Parsing\ParserErrorMessageTests.cs (5)
4671
CreateCompilation(test, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
4697
CreateCompilation(test, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
4717
CreateCompilation(test, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
4737
CreateCompilation(test, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
4888
CreateCompilation(test, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
Parsing\RefReadonlyTests.cs (2)
46
var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), options: TestOptions.
UnsafeDebugDll
);
91
var 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)
659
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
771
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
1108
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
1156
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
1231
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
1304
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
1379
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
1466
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
2096
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
2173
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics();
2248
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
2329
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
2405
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
2473
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics(
4086
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
4180
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
4285
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
4401
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
4500
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
4580
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
4701
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
4863
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
5020
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
5177
CreateCompilation(text, options: TestOptions.
UnsafeDebugDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
CSharpFunctionResolverTests.cs (1)
512
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeDebugDll
);
Microsoft.CodeAnalysis.UnitTests (1)
Symbols\DocumentationCommentIdTests.cs (1)
173
var comp = CreateCSharpCompilation(text, compilationOptions: TestOptions.
UnsafeDebugDll
).VerifyDiagnostics();