1044 references to UnsafeReleaseDll
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (65)
UnsafeEvolutionTests.cs (65)
42
optionsDll ??= TestOptions.
UnsafeReleaseDll
;
2468
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
)
2471
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
2755
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules(apiUpdatedRules))
3797
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
3886
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
3903
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
3922
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
4359
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
4768
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules().WithMetadataImportOptions(MetadataImportOptions.All))
5574
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
5922
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
5947
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
6003
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
6222
options: TestOptions.
UnsafeReleaseDll
,
6289
options: TestOptions.
UnsafeReleaseDll
,
6348
options: TestOptions.
UnsafeReleaseDll
,
6402
options: TestOptions.
UnsafeReleaseDll
,
6444
options: TestOptions.
UnsafeReleaseDll
,
6485
options: TestOptions.
UnsafeReleaseDll
,
6564
options: TestOptions.
UnsafeReleaseDll
,
6648
options: TestOptions.
UnsafeReleaseDll
)
6723
options: TestOptions.
UnsafeReleaseDll
)
6790
options: TestOptions.
UnsafeReleaseDll
)
6877
options: TestOptions.
UnsafeReleaseDll
,
6947
options: TestOptions.
UnsafeReleaseDll
,
7041
options: TestOptions.
UnsafeReleaseDll
,
7107
options: TestOptions.
UnsafeReleaseDll
,
7161
options: TestOptions.
UnsafeReleaseDll
,
7219
options: TestOptions.
UnsafeReleaseDll
,
7364
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
7395
options: TestOptions.
UnsafeReleaseDll
)
7786
optionsDll: TestOptions.
UnsafeReleaseDll
.WithMetadataImportOptions(MetadataImportOptions.All),
7936
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
7967
options: TestOptions.
UnsafeReleaseDll
)
8083
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
8097
options: TestOptions.
UnsafeReleaseDll
)
8119
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
8155
options: TestOptions.
UnsafeReleaseDll
)
8272
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
8286
options: TestOptions.
UnsafeReleaseDll
)
8308
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
8437
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
8445
options: TestOptions.
UnsafeReleaseDll
)
8466
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
8497
options: TestOptions.
UnsafeReleaseDll
)
8594
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
8602
options: TestOptions.
UnsafeReleaseDll
)
8624
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
8655
options: TestOptions.
UnsafeReleaseDll
)
8726
options: TestOptions.
UnsafeReleaseDll
.WithWarningLevel(10))
8729
options: TestOptions.
UnsafeReleaseDll
.WithWarningLevel(11))
8733
options: TestOptions.
UnsafeReleaseDll
.WithMetadataImportOptions(MetadataImportOptions.All),
8742
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules().WithMetadataImportOptions(MetadataImportOptions.All),
8751
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules().WithMetadataImportOptions(MetadataImportOptions.All),
8768
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules().WithMetadataImportOptions(MetadataImportOptions.All),
8858
options: TestOptions.
UnsafeReleaseDll
.WithMetadataImportOptions(MetadataImportOptions.All),
8867
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules().WithMetadataImportOptions(MetadataImportOptions.All),
8915
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
8952
options: TestOptions.
UnsafeReleaseDll
,
8964
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules(),
8993
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules(),
9020
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
9028
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
9093
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules()
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (154)
BreakingChanges.cs (1)
776
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
CodeGen\CodeGenCheckedTests.cs (1)
391
var verifier = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
CodeGen\CodeGenDynamicTests.cs (1)
14056
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
CodeGen\CodeGenExprLambdaTests.cs (3)
1181
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2096
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2872
options: TestOptions.
UnsafeReleaseDll
,
CodeGen\CodeGenFunctionPointersTests.cs (18)
40
options: options ?? (expectedOutput is null ? TestOptions.
UnsafeReleaseDll
: TestOptions.UnsafeReleaseExe),
48
return CreateCompilation(source, references: references, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview, targetFramework: targetFramework ?? TargetFramework.Net50);
56
return CreateCompilation(source, references: references, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Empty);
61
var comp = CreateCompilationWithIL(source, ilStub, parseOptions: TestOptions.RegularPreview, options: expectedOutput is null ? TestOptions.
UnsafeReleaseDll
: TestOptions.UnsafeReleaseExe);
70
return CreateCompilationWithIL(source, ilStub, references: references, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Empty);
2593
}", references: new[] { nopiaReference }, parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
2630
}", references: new[] { aRef }, assemblyName: "B", parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
2639
}", references: new[] { aRef, bRef }, assemblyName: "C", parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
);
2660
}", references: new[] { aRef }, assemblyName: "B", parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
2669
}", references: new[] { aRef, bRef }, assemblyName: "C", parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
);
5026
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview);
5395
var comp = CreateCompilationWithFunctionPointers(source, options: WithNullableEnable(TestOptions.
UnsafeReleaseDll
));
7561
var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7581
var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7630
var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7650
var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
9703
", UnmanagedCallersOnlyAttribute }, options: TestOptions.
UnsafeReleaseDll
);
11905
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
CodeGen\CodeGenInParametersTests.cs (1)
1270
var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\CodeGenMscorlib.cs (4)
153
var c = CreateEmptyCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
880
var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1037
var comp = CreateEmptyCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
1163
var comp = CreateEmptyCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2751
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (7)
949
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
973
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
1016
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
1095
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
2489
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
2537
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
2588
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\CodeGenRefReadonlyReturnTests.cs (1)
688
var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\CodeGenRefReturnTests.cs (2)
1303
CompileAndVerifyRef(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("Program.Main()", @"
1492
CompileAndVerifyRef(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("Program.Main()", @"
CodeGen\CodeGenTupleTest.cs (1)
28975
", options: TestOptions.
UnsafeReleaseDll
, symbolValidator: symbolValidator);
CodeGen\FixedSizeBufferTests.cs (19)
337
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
370
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
407
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
581
var comp1 = CompileAndVerify(s1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).Compilation;
652
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
677
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
704
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
726
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
810
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
839
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
868
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
924
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
965
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
990
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes,
1022
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes,
1079
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1103
}", options: TestOptions.
UnsafeReleaseDll
);
1134
}", options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
1164
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Mscorlib40, assemblyName: "fixedBuffer");
CodeGen\ForeachTest.cs (1)
66
}", options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("Test.Main", @"
CodeGen\PatternTests.cs (3)
123
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
153
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
201
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
CodeGen\UnsafeTests.cs (86)
33
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes);
60
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
220
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes);
245
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
292
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
339
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
700
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
753
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
798
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M1", """
848
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M1", """
896
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
945
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
993
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1034
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1078
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1169
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1218
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1267
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("S.M", """
1314
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("S.M", """
1360
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("S.M", """
1406
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("S.M", """
1454
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1504
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1554
CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1603
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1656
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
2591
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
3330
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3392
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3455
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3511
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3572
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3633
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3693
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3769
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3853
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3983
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4034
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4099
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4183
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4263
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4319
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4364
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4418
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4468
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4520
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4574
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4627
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4681
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4731
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4781
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4830
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4870
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4911
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4969
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
5033
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
5100
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
7078
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
7168
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
7258
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
7348
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
7489
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
7490
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
7552
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
7553
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
7758
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
7759
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
7827
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
7828
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
8278
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
8343
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
8408
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
8473
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
11135
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
11192
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
11229
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
11462
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11806
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.Test", @"
11949
var c = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify with
11971
var c = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify with
12025
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
12049
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyDiagnostics(
12072
var comp = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyDiagnostics();
12437
var verifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
.WithConcurrentBuild(false), verify: Verification.Passes);
12461
var verifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
.WithConcurrentBuild(false), verify: Verification.FailsPEVerify);
12479
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\WinMdDelegateTests.cs (1)
153
options: TestOptions.
UnsafeReleaseDll
,
Emit\CompilationEmitTests.cs (3)
4254
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
4492
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
4549
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (13)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (3)
4686
CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.Test", @"
4722
CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C<T>.Test", @"
4762
CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.Test<T>", @"
Emit\NumericIntPtrTests.cs (10)
334
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
371
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
435
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
491
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1369
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
1383
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
1414
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
1415
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
9910
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
11818
options: TestOptions.
UnsafeReleaseDll
,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (104)
Attributes\AttributeTests_Dynamic.cs (2)
103
var comp = CreateCompilationWithMscorlib40(s_dynamicTestSource, options: TestOptions.
UnsafeReleaseDll
, references: new[] { SystemCoreRef, ValueTupleRef, SystemRuntimeFacadeRef });
562
var comp = CreateCompilationWithMscorlib46(s_dynamicTestSource, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.
UnsafeReleaseDll
);
Attributes\AttributeTests_NativeInteger.cs (3)
1335
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1359
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1560
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, symbolValidator: symbolValidator);
Attributes\AttributeTests_Security.cs (2)
1303
var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.
UnsafeReleaseDll
);
1383
var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.
UnsafeReleaseDll
);
Attributes\AttributeTests_Synthesized.cs (2)
145
var reference = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
146
var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.
UnsafeReleaseDll
.WithMetadataImportOptions(MetadataImportOptions.Internal));
Attributes\AttributeTests_Tuples.cs (2)
117
options: TestOptions.
UnsafeReleaseDll
,
239
options: TestOptions.
UnsafeReleaseDll
,
Attributes\AttributeTests_WellKnownAttributes.cs (39)
10468
return CompileAndVerifyWithSkipLocalsInit(src, TestOptions.
UnsafeReleaseDll
, parseOptions, verify ?? Verification.Fails);
10542
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10577
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10610
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10643
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10735
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
10860
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10890
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10950
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11616
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11657
var comp1 = CompileAndVerify(source1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11693
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11741
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11775
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11812
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11843
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11888
var comp_init = CompileAndVerify(source_init, options: TestOptions.
UnsafeReleaseDll
);
11889
var comp_skip = CompileAndVerify(source_skip, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11926
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
11969
var comp_init = CompileAndVerify(source_init, options: TestOptions.
UnsafeReleaseDll
);
11970
var comp_skip = CompileAndVerify(source_skip, options: TestOptions.
UnsafeReleaseDll
);
12012
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12064
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12136
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12171
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12244
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12305
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12334
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
12380
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
12498
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12548
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12603
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12661
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12708
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12737
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12878
var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
13119
var verifier = CompileAndVerify(src, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Skipped);
13165
var verifier = CompileAndVerify(src, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Skipped);
13192
var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: TestOptions.
UnsafeReleaseDll
);
Diagnostics\OperationAnalyzerTests.cs (1)
1386
CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeReleaseDll
)
FirstClassSpanTests.cs (1)
1994
var spanDll = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
)
FlowAnalysis\FlowTests.cs (2)
1640
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1688
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
PartialEventsAndConstructorsTests.cs (2)
3068
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3093
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
RefReadonlyParameterTests.cs (8)
938
var verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeReleaseDll
,
1393
var comp1v1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1409
var comp2 = CreateCompilation(source2, new[] { comp1v1Ref }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1440
var comp1v2 = CreateCompilation(source1, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1454
var comp1v3 = CreateCompilation(new[] { source1, source5 }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1461
var comp1v4 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1501
assemblyName: "Assembly2", options: TestOptions.
UnsafeReleaseDll
);
1513
var comp3 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly3", options: TestOptions.
UnsafeReleaseDll
);
RefUnsafeInIteratorAndAsyncTests.cs (18)
251
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
266
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
267
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
286
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
301
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
302
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
324
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
336
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
337
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
418
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
430
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
431
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
573
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
588
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
589
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
838
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
850
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
851
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
Semantics\PatternMatchingTests_ListPatterns.cs (4)
9499
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
9538
var compilation = CreateCompilation([source, TestSources.Index], options: TestOptions.
UnsafeReleaseDll
);
9577
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
9616
var compilation = CreateCompilation([source, TestSources.Index], options: TestOptions.
UnsafeReleaseDll
);
Semantics\PatternMatchingTests4.cs (1)
3834
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
Semantics\PrimaryConstructorTests.cs (17)
13155
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13180
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
13199
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13226
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13258
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13290
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13324
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13362
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13406
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13439
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13476
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13537
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expected);
13567
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13630
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expected);
13661
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13703
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
22098
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (6)
IOperation\FunctionPointerOperations.cs (1)
19
return CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
IOperation\IOperationTests_IConversionExpression.cs (4)
2934
compilationOptions: TestOptions.
UnsafeReleaseDll
,
2966
compilationOptions: TestOptions.
UnsafeReleaseDll
,
3002
compilationOptions: TestOptions.
UnsafeReleaseDll
,
3037
compilationOptions: TestOptions.
UnsafeReleaseDll
,
IOperation\IOperationTests_ISizeOfExpression.cs (1)
92
VerifyOperationTreeAndDiagnosticsForTest<SizeOfExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeReleaseDll
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (650)
Semantics\AccessCheckTests.cs (1)
1518
}", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
Semantics\ArglistTests.cs (2)
1543
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1567
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\BindingAsyncTests.cs (8)
694
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
710
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
730
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
)
757
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1256
CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1295
CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1547
TestOptions.
UnsafeReleaseDll
);
3277
CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\BindingTests.cs (1)
2038
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\DynamicTests.cs (12)
58
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
616
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
831
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
1278
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1281
comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
1891
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2152
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2336
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2366
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2842
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
2845
comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2876
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\FunctionPointerTests.cs (3)
22
return CreateCompilation(source, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: parseOptions, targetFramework: targetFramework ?? TargetFramework.Standard);
2005
var comp = CreateCompilationWithIL(source, il, options: TestOptions.
UnsafeReleaseDll
);
2122
var comp = CreateCompilationWithIL("", il, references: new[] { cComp.ToMetadataReference() }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
Semantics\GenericConstraintsTests.cs (51)
2873
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2925
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3133
}", options: TestOptions.
UnsafeReleaseDll
);
3163
}", options: TestOptions.
UnsafeReleaseDll
);
3189
}", options: TestOptions.
UnsafeReleaseDll
);
3218
}", options: TestOptions.
UnsafeReleaseDll
);
3258
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3296
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3320
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3350
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3385
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3414
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3417
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
3457
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3464
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
3492
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3534
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3558
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3578
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3599
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3623
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3654
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3679
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3707
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3735
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3763
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3794
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3830
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3862
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3890
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3962
CompileAndVerify(code, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Skipped)
4001
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4008
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4031
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4040
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4057
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4064
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4081
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4087
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4104
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4110
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4127
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4134
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4154
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4161
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4184
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4194
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4221
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4231
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
4284
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4341
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
Semantics\ImplicitObjectCreationTests.cs (1)
775
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Semantics\InterpolationTests.cs (1)
1113
var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\LocalFunctionTests.cs (1)
6834
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Semantics\NamedAndOptionalTests.cs (1)
774
var c = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify);
Semantics\NameLengthTests.cs (1)
555
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Semantics\NameOfTests.cs (5)
2884
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2915
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2946
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2968
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2993
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\NativeIntegerTests.cs (10)
1898
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
1935
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
2061
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
2117
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
4378
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
4387
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
4406
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
4407
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
4421
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
14375
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
Semantics\NullableReferenceTypesTests.cs (8)
1609
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2219
}", TestOptions.
UnsafeReleaseDll
);
2667
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
2693
var comp = CreateCompilation(source, options: WithNullable(TestOptions.
UnsafeReleaseDll
, NullableContextOptions.Enable));
3567
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
83180
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.
UnsafeReleaseDll
));
145079
var spanRef = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
)
156465
}", parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
Semantics\OperatorTests.cs (2)
1686
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4767
", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\OverloadResolutionTests.cs (1)
7002
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\RawInterpolationTests.cs (1)
1109
var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\ReadOnlyStructsTests.cs (1)
513
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeReleaseDll
);
Semantics\RecordStructTests.cs (3)
571
var comp = CreateCompilation(src, options: TestOptions.
UnsafeReleaseDll
);
7931
var comp = CreateCompilation(src, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview);
10667
var comp = CreateCompilation(src, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview);
Semantics\RefEscapingTests.cs (4)
4445
CreateCompilation([source, UnscopedRefAttributeDefinition], options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4520
CreateCompilation([source, UnscopedRefAttributeDefinition], options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9426
}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9452
}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\RefFieldTests.cs (35)
590
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
752
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
798
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
847
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
930
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1028
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1121
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1186
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1262
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1305
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1342
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1376
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1421
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1466
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1513
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1514
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1569
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1570
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1621
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1622
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1677
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1678
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
10219
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, options: TestOptions.
UnsafeReleaseDll
);
10628
options: (useUnsafe ? TestOptions.
UnsafeReleaseDll
: null));
10861
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.
UnsafeReleaseDll
);
10874
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB), options: TestOptions.
UnsafeReleaseDll
);
16974
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
17006
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
20158
var comp = CreateCompilation(sourceB, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
25297
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.
UnsafeReleaseDll
);
30590
var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
);
30622
var comp = CreateCompilationWithSpan(source, options: TestOptions.
UnsafeReleaseDll
);
31016
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
31067
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
32191
var spanCompilation = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular8);
Semantics\RefLocalsAndReturnsTests.cs (6)
4766
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4794
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4822
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4850
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4878
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4909
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\SemanticErrorTests.cs (32)
7527
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8189
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8239
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8282
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8353
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8378
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8407
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8899
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8935
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9024
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9124
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9148
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9172
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11006
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
12323
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15443
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
15471
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
15472
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
15576
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15943
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16526
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16556
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16585
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16650
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
17053
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
17574
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
18883
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options: TestOptions.
UnsafeReleaseDll
);
18931
var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
);
20309
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
22741
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
22764
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
24359
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
)
Semantics\SpanStackSafetyTests.cs (2)
2005
options: TestOptions.
UnsafeReleaseDll
);
2046
options: TestOptions.
UnsafeReleaseDll
);
Semantics\StackAllocInitializerTests.cs (34)
59
", TestOptions.
UnsafeReleaseDll
);
136
", TestOptions.
UnsafeReleaseDll
);
201
", TestOptions.
UnsafeReleaseDll
);
254
", TestOptions.
UnsafeReleaseDll
);
307
", TestOptions.
UnsafeReleaseDll
);
353
}", TestOptions.
UnsafeReleaseDll
);
426
}", TestOptions.
UnsafeReleaseDll
);
732
}", TestOptions.
UnsafeReleaseDll
);
755
}", TestOptions.
UnsafeReleaseDll
);
793
}", TestOptions.
UnsafeReleaseDll
);
812
}", TestOptions.
UnsafeReleaseDll
);
831
}", TestOptions.
UnsafeReleaseDll
);
852
}", TestOptions.
UnsafeReleaseDll
);
879
}", TestOptions.
UnsafeReleaseDll
);
904
}", TestOptions.
UnsafeReleaseDll
);
927
}", TestOptions.
UnsafeReleaseDll
);
1028
}", TestOptions.
UnsafeReleaseDll
);
1130
}", TestOptions.
UnsafeReleaseDll
);
1218
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1318
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1334
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1350
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1380
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1397
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1430
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1445
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1473
}", options: TestOptions.
UnsafeReleaseDll
, parseOptions: parseOptions).VerifyDiagnostics(
1506
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2119
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2283
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2354
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2460
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2547
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2637
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\StackAllocSpanExpressionsTests.cs (17)
43
}", TestOptions.
UnsafeReleaseDll
);
117
}", TestOptions.
UnsafeReleaseDll
);
183
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
243
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
257
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
271
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
289
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
304
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
331
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
345
CreateCompilationWithMscorlibAndSpan(source, TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
353
CreateCompilationWithMscorlibAndSpan(source, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
373
}", options: TestOptions.
UnsafeReleaseDll
, parseOptions: parseOptions).VerifyDiagnostics(
393
}", options: TestOptions.
UnsafeReleaseDll
, parseOptions: parseOptions).VerifyDiagnostics(
412
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
781
CreateEmptyCompilation(code, references, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
810
CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
836
CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\StructConstructorTests.cs (2)
3406
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular10);
3418
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11);
Semantics\TargetTypedDefaultTests.cs (1)
2722
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_1)
Semantics\TypeOfTests.cs (5)
53
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
67
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
83
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
99
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
118
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\UnsafeTests.cs (396)
107
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
124
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
145
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
171
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
187
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
191
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
206
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
210
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
240
compilationOptions: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false),
247
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
263
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
279
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
284
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
285
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
302
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
307
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
308
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
325
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
330
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
331
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
349
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
354
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
355
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
380
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
398
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
399
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
422
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
446
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
447
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
469
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
493
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
494
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
514
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
536
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
560
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
584
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
640
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
645
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
646
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
665
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
677
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
678
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
755
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
756
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
854
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
874
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
879
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
880
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
901
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
906
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
907
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
925
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
937
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
938
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
956
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
965
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
966
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
984
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
985
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
986
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
1007
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1016
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1017
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1035
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1044
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1045
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1067
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1076
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1077
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1099
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1108
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1109
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1127
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
1139
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1140
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1158
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1159
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1160
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1180
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1181
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1182
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1203
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1204
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1205
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1228
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1229
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1230
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1246
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1247
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1248
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1264
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1269
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1270
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1293
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1294
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1295
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1310
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1330
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1349
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1367
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1390
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1391
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1416
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1417
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1438
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1439
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1440
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1463
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1464
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1465
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1486
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1487
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1488
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1511
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1512
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1513
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1529
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1530
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1531
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1547
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1552
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1553
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1576
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1577
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1578
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1593
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1612
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1635
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1636
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1658
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1659
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1660
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1684
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1685
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1686
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1708
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1709
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1710
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1737
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1738
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1739
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1756
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1757
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1758
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1775
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1780
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1781
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1805
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1806
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1807
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1823
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1849
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1878
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1879
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1906
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1907
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1929
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1930
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1931
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1955
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1956
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1957
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1979
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1980
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1981
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2008
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2009
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2010
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2027
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2028
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2029
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2046
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2051
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2052
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2076
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2077
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2078
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2094
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2120
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2149
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2150
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2177
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2178
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2596
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
2597
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
2598
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
2621
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2644
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
3182
CreateCompilation(withoutUnsafe, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3194
CreateCompilation(withUnsafeOnType, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3199
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3214
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
3215
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
3218
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3232
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
3233
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
3250
CreateCompilation(withoutUnsafe, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3257
CreateCompilation(withUnsafeOnType, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3260
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3266
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
3267
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
3270
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3276
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
3277
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
3294
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3318
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3361
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3374
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
3378
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3396
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3420
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4172
CreateCompilation(withoutUnsafe, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithoutUnsafe);
4175
CreateCompilation(withUnsafeOnType, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
4178
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
4181
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
5189
var compilation = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
);
5313
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
5380
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
6145
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6171
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6195
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6219
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6249
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6265
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6368
var compilation = CreateCompilation(tree, new[] { metadata }, TestOptions.
UnsafeReleaseDll
);
6415
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6433
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6475
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6498
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6544
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6641
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6792
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6826
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6871
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6928
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6948
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6968
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6987
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7008
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7030
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7053
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7074
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7097
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7121
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7148
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7170
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7188
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7211
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7234
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7254
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7291
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7320
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7358
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7396
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7437
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7452
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7471
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7489
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7508
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7532
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7569
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7586
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7601
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7619
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7637
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7656
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7674
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7693
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7751
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7796
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7842
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7909
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7968
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7986
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8006
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8026
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8045
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8063
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8087
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8108
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8129
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8155
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8222
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8280
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8340
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8376
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8417
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8470
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8520
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8558
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8668
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8745
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8786
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8818
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8852
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8906
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8944
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8988
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9057
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9131
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9152
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9168
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9192
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9212
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9250
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9275
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9318
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
9375
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9419
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9514
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9534
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9556
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9582
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9604
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9654
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9688
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9727
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9767
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9802
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9825
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
9829
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9856
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9901
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9937
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9957
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9987
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10009
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10062
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
10092
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10122
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10144
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10174
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
10215
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
10287
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
10354
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10479
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10510
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10561
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10846
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10928
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11025
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11058
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11081
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11114
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11167
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
11177
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
11198
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
11203
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
11221
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11242
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
11251
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
11265
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
11278
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
11302
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
11382
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11409
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
11412
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules()).VerifyDiagnostics(expected);
11425
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected);
11461
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedWithUnsafe);
11465
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedWithUnsafe);
11469
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
11516
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
11544
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected);
11591
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
11627
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
11679
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
11701
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected);
11738
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
11762
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
11807
var comp = CreateCompilation(tree, options: TestOptions.
UnsafeReleaseDll
);
11855
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11877
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
11904
var comp = CreateCompilation(tree, options: TestOptions.
UnsafeReleaseDll
);
11940
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11963
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
12045
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
12061
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
12084
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
12333
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12416
var comp1 = CompileAndVerify(s1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).Compilation;
12470
options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails,
12572
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
13266
options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
13276
options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
13290
options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
13300
options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14365
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14384
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14406
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14426
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14447
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14467
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14483
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14502
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14521
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14543
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\UserDefinedConversionTests.cs (1)
1151
var comp = CreateCompilation(source1 + source2 + source3 + source4 + source5, options: TestOptions.
UnsafeReleaseDll
);
Semantics\UseSiteErrorTests.cs (1)
2260
CSharpCompilationOptions options = TestOptions.
UnsafeReleaseDll
;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (46)
SymbolDisplay\SymbolDisplayTests.cs (1)
8919
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Symbols\ConversionTests.cs (1)
2337
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Symbols\FunctionPointerTypeSymbolTests.cs (3)
23
return CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
, targetFramework: targetFramework);
1950
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
2076
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
Symbols\GenericConstraintTests.cs (1)
340
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Symbols\PartialPropertiesTests.cs (2)
2063
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
2102
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Symbols\RequiredMembersTests.cs (1)
203
", options: TestOptions.
UnsafeReleaseDll
);
Symbols\Retargeting\RetargetingTests.cs (2)
978
}}", new[] { retargeted1Ref, consistentRef, ilRef }, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard);
983
options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9,
Symbols\Source\ClsComplianceTests.cs (8)
442
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
565
CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
762
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
849
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics();
1181
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1228
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1271
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2935
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Symbols\SymbolDistinguisherTests.cs (2)
233
var libRef = CreateCompilation(tree, assemblyName: "Metadata", options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
234
var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source", options: TestOptions.
UnsafeReleaseDll
);
Symbols\SymbolErrorTests.cs (25)
2846
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2876
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2893
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2915
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9411
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9426
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
12039
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
14529
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14888
", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15532
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
15546
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
15562
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15577
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15592
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15604
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15619
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15646
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15664
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15679
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15693
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15710
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15744
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15769
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15790
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15981
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
CSharpTestBase.cs (6)
2857
options: TestOptions.
UnsafeReleaseDll
);
2875
options: TestOptions.
UnsafeReleaseDll
);
2894
options: options ?? TestOptions.
UnsafeReleaseDll
,
2926
var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2943
var reference = CreateCompilation(new[] { TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2961
var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();