695 references to UnsafeReleaseDll
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (135)
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)
13691
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
CodeGen\CodeGenExprLambdaTests.cs (3)
1534
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2378
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
3144
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.Regular9, targetFramework: targetFramework ?? TargetFramework.Net50);
56
return CreateCompilation(source, references: references, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Empty);
61
var comp = CreateCompilationWithIL(source, ilStub, parseOptions: TestOptions.Regular9, options: expectedOutput is null ? TestOptions.
UnsafeReleaseDll
: TestOptions.UnsafeReleaseExe);
70
return CreateCompilationWithIL(source, ilStub, references: references, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Empty);
2585
}", references: new[] { nopiaReference }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
2622
}", references: new[] { aRef }, assemblyName: "B", parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
2631
}", references: new[] { aRef, bRef }, assemblyName: "C", parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
2652
}", references: new[] { aRef }, assemblyName: "B", parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
2661
}", references: new[] { aRef, bRef }, assemblyName: "C", parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
5018
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
5387
var comp = CreateCompilationWithFunctionPointers(source, options: WithNullableEnable(TestOptions.
UnsafeReleaseDll
));
7550
var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7570
var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7619
var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7639
var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
9658
", UnmanagedCallersOnlyAttribute }, options: TestOptions.
UnsafeReleaseDll
);
11807
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
CodeGen\CodeGenInParametersTests.cs (1)
1237
var comp = CreateCompilationWithMscorlib45(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)
2750
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (8)
1027
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
1051
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
1094
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
1173
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
2528
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
2560
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
2608
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
2659
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\CodeGenRefReadonlyReturnTests.cs (1)
688
var comp = CreateCompilationWithMscorlib45(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)
29001
", options: TestOptions.
UnsafeReleaseDll
, symbolValidator: symbolValidator);
CodeGen\FixedSizeBufferTests.cs (19)
328
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
361
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
398
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
569
var comp1 = CompileAndVerify(s1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).Compilation;
640
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
665
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
692
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
714
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
798
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
827
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
856
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
912
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
953
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
978
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes,
1010
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes,
1067
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1091
}", options: TestOptions.
UnsafeReleaseDll
);
1122
}", options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
1152
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)
122
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
152
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
200
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
CodeGen\UnsafeTests.cs (66)
32
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes);
59
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
89
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes);
114
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
161
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
208
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
1456
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
2195
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2257
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2320
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2376
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2437
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2498
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2558
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2634
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2718
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2848
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2899
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2964
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3048
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3128
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3184
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3229
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3283
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3333
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3385
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3439
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3492
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3546
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3596
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3646
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3695
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3735
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3776
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3834
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3898
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3965
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
5634
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
5724
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
5814
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
5904
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
6045
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6046
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6108
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6109
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6314
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
6315
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
6383
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
6384
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
6834
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
6899
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
6964
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
7029
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
9690
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
9747
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
9784
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
10017
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10208
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.Test", @"
10351
var c = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify with
10373
var c = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify with
10427
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
10451
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyDiagnostics(
10474
var comp = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyDiagnostics();
10839
var verifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
.WithConcurrentBuild(false), verify: Verification.Passes);
10863
var verifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
.WithConcurrentBuild(false), verify: Verification.FailsPEVerify);
10881
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\WinMdDelegateTests.cs (1)
153
options: TestOptions.
UnsafeReleaseDll
,
Emit\CompilationEmitTests.cs (3)
4248
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
4486
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
4543
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (63)
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)
1333
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1357
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1558
", 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)
10330
return CompileAndVerifyWithSkipLocalsInit(src, TestOptions.
UnsafeReleaseDll
, parseOptions, verify ?? Verification.Fails);
10404
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10439
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10472
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10505
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10597
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
10722
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10752
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10812
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11400
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11441
var comp1 = CompileAndVerify(source1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11477
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11525
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11559
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11596
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11627
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11672
var comp_init = CompileAndVerify(source_init, options: TestOptions.
UnsafeReleaseDll
);
11673
var comp_skip = CompileAndVerify(source_skip, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11710
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
11753
var comp_init = CompileAndVerify(source_init, options: TestOptions.
UnsafeReleaseDll
);
11754
var comp_skip = CompileAndVerify(source_skip, options: TestOptions.
UnsafeReleaseDll
);
11796
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11848
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11920
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11955
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12028
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12089
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12118
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
12164
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
12282
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12332
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12387
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12445
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12492
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12521
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12662
var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12903
var verifier = CompileAndVerify(src, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Skipped);
12949
var verifier = CompileAndVerify(src, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Skipped);
12976
var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (3)
4688
CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.Test", @"
4724
CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C<T>.Test", @"
4764
CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.Test<T>", @"
Diagnostics\OperationAnalyzerTests.cs (1)
1386
CreateCompilationWithMscorlib45(source, options: TestOptions.
UnsafeReleaseDll
)
Emit\NumericIntPtrTests.cs (6)
328
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
365
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
429
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
485
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1362
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70);
9870
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
FlowAnalysis\FlowTests.cs (2)
1640
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1688
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\PatternMatchingTests4.cs (1)
3780
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider.UnitTests (1)
CSharpResultProviderTestBase.cs (1)
54
var comp = CSharpTestBase.CreateCompilationWithMscorlib45AndCSharp(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)
2933
compilationOptions: TestOptions.
UnsafeReleaseDll
,
2965
compilationOptions: TestOptions.
UnsafeReleaseDll
,
3001
compilationOptions: TestOptions.
UnsafeReleaseDll
,
3036
compilationOptions: TestOptions.
UnsafeReleaseDll
,
IOperation\IOperationTests_ISizeOfExpression.cs (1)
92
VerifyOperationTreeAndDiagnosticsForTest<SizeOfExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeReleaseDll
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (441)
Semantics\AccessCheckTests.cs (1)
1516
}", 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 (6)
697
CreateCompilationWithMscorlib45(source, null, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
716
CreateCompilationWithMscorlib45(source, null, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1164
CreateCompilationWithMscorlib45(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1203
CreateCompilationWithMscorlib45(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1455
TestOptions.
UnsafeReleaseDll
);
3237
CreateCompilationWithMscorlib45(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\BindingTests.cs (1)
2005
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\DynamicTests.cs (12)
37
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
595
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
810
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
1257
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1260
comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
1665
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1926
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2110
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2140
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2616
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
2619
comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2650
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\FunctionPointerTests.cs (3)
21
return CreateCompilation(source, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: parseOptions ?? TestOptions.Regular9, targetFramework: targetFramework ?? TargetFramework.Standard);
1981
var comp = CreateCompilationWithIL(source, il, options: TestOptions.
UnsafeReleaseDll
);
2098
var comp = CreateCompilationWithIL("", il, references: new[] { cComp.ToMetadataReference() }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
Semantics\GenericConstraintsTests.cs (45)
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
);
3779
CompileAndVerify(code, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Skipped)
3818
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
3825
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3848
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
3857
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3874
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
3881
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3898
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
3904
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3921
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
3927
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3944
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
3951
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3971
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
3978
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4001
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4011
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4038
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4048
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
4101
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4158
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
Semantics\ImplicitObjectCreationTests.cs (1)
780
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Semantics\InterpolationTests.cs (1)
1115
var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\LocalFunctionTests.cs (1)
6447
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\NativeIntegerTests.cs (7)
1893
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
1930
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
2056
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
2112
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
4372
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
4393
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
14344
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
Semantics\NullableReferenceTypesTests.cs (8)
1597
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2207
}", TestOptions.
UnsafeReleaseDll
);
2656
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
2682
var comp = CreateCompilation(source, options: WithNullable(TestOptions.
UnsafeReleaseDll
, NullableContextOptions.Enable));
3548
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
79432
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.
UnsafeReleaseDll
));
140672
var spanRef = CreateCompilation(SpanSource, options: TestOptions.
UnsafeReleaseDll
)
151868
}", parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
Semantics\OperatorTests.cs (2)
1686
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4766
", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\OverloadResolutionTests.cs (1)
7004
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\PrimaryConstructorTests.cs (16)
11997
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12022
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
12041
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12068
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12100
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12132
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12166
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12204
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12248
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12281
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12318
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12379
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expected);
12409
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12472
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expected);
12503
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
12545
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
Semantics\RawInterpolationTests.cs (1)
1111
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
);
7819
var comp = CreateCompilation(src, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview);
10597
var comp = CreateCompilation(src, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview);
Semantics\RefEscapingTests.cs (2)
4929
}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4955
}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\RefFieldTests.cs (34)
563
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
725
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
771
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
820
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
903
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1001
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1094
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1159
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1235
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1278
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1315
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1349
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1394
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1439
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1486
var spanReference = CreateCompilation(SpanSource, options: TestOptions.
UnsafeReleaseDll
);
1487
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1542
var spanReference = CreateCompilation(SpanSource, options: TestOptions.
UnsafeReleaseDll
);
1543
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1594
var spanReference = CreateCompilation(SpanSource, options: TestOptions.
UnsafeReleaseDll
);
1595
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1650
var spanReference = CreateCompilation(SpanSource, options: TestOptions.
UnsafeReleaseDll
);
1651
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
9707
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, options: TestOptions.
UnsafeReleaseDll
);
10116
options: (useUnsafe ? TestOptions.
UnsafeReleaseDll
: null));
10349
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.
UnsafeReleaseDll
);
10362
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB), options: TestOptions.
UnsafeReleaseDll
);
16454
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
16486
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
19580
var comp = CreateCompilation(sourceB, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
24244
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.
UnsafeReleaseDll
);
29069
var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
);
29101
var comp = CreateCompilationWithSpan(source, options: TestOptions.
UnsafeReleaseDll
);
29495
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
29546
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Semantics\RefLocalsAndReturnsTests.cs (6)
4377
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4405
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4433
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4461
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4489
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4520
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\SemanticErrorTests.cs (30)
7478
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8140
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8190
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8233
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8304
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8329
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8358
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8850
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8886
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8975
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9075
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9099
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9123
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10957
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
12228
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15283
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15403
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15770
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16364
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16394
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16423
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16495
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16898
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
17419
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
18612
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options: TestOptions.
UnsafeReleaseDll
);
18660
var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
);
20038
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
22470
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
22493
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
24056
CreateCompilationWithMscorlib45(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\SpanStackSafetyTests.cs (2)
1516
options: TestOptions.
UnsafeReleaseDll
);
1557
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
);
777
}", TestOptions.
UnsafeReleaseDll
);
796
}", TestOptions.
UnsafeReleaseDll
);
815
}", TestOptions.
UnsafeReleaseDll
);
836
}", TestOptions.
UnsafeReleaseDll
);
863
}", TestOptions.
UnsafeReleaseDll
);
888
}", TestOptions.
UnsafeReleaseDll
);
911
}", TestOptions.
UnsafeReleaseDll
);
1012
}", TestOptions.
UnsafeReleaseDll
);
1114
}", TestOptions.
UnsafeReleaseDll
);
1202
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1302
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1318
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1334
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1364
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1381
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1414
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1429
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1457
}", options: TestOptions.
UnsafeReleaseDll
, parseOptions: parseOptions).VerifyDiagnostics(
1490
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2103
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2267
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2338
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2444
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2531
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2621
}", 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\UnsafeTests.cs (197)
106
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
123
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
144
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
170
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
186
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
190
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
205
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
209
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
239
compilationOptions: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false),
246
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
262
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
278
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
297
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
316
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
336
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
361
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
384
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
916
CreateCompilation(withoutUnsafe, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
928
CreateCompilation(withUnsafeOnType, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
933
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
940
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
961
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
985
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1028
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1041
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
1045
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1063
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1087
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1562
CreateCompilation(withoutUnsafe, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithoutUnsafe);
1565
CreateCompilation(withUnsafeOnType, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
1568
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
1571
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
2376
var compilation = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
);
2489
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
2556
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
3321
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3347
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3371
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3395
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3426
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3529
var compilation = CreateCompilation(tree, new[] { metadata }, TestOptions.
UnsafeReleaseDll
);
3576
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3594
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3636
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3659
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3705
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3802
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3953
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3987
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4032
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4089
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4109
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4129
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4148
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4169
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4191
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4214
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4235
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4258
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4282
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4309
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4331
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4349
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4372
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4395
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4415
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
4452
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
4481
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
4519
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
4557
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
4598
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4613
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4632
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4650
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4669
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4693
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
4730
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4747
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4762
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4780
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4798
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4817
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4835
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4854
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4912
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4957
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5003
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
5070
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
5129
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5147
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5167
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5187
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5206
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5224
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5248
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
5269
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
5290
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
5316
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
5383
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
5441
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
5501
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
5537
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
5578
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5631
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
5681
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
5719
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5829
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5906
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5947
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
5979
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6013
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
6067
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
6105
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6149
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6218
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6292
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6313
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6329
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6353
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6373
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6411
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6436
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6479
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
6536
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6580
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6675
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6695
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6717
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6743
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6765
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6815
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6849
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6888
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6928
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6963
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6986
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
6990
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7017
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7062
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7098
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7118
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7148
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7170
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7223
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
7253
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7283
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7305
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7335
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7376
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7448
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7515
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7633
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7664
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7715
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7993
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8075
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8172
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8205
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8228
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8261
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8314
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
8324
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
8345
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
8350
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
8368
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8389
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8398
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
8412
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
8425
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
8449
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8529
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8556
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
8569
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expected);
8605
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedWithUnsafe);
8609
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedWithUnsafe);
8613
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
8660
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
8688
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expected);
8735
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
8771
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(
8823
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
8845
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expected);
8882
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
8906
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(
8951
var comp = CreateCompilation(tree, options: TestOptions.
UnsafeReleaseDll
);
8999
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9021
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
9048
var comp = CreateCompilation(tree, options: TestOptions.
UnsafeReleaseDll
);
9084
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9107
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9159
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9175
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9198
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9447
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
9530
var comp1 = CompileAndVerify(s1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).Compilation;
9584
options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails,
9686
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\UserDefinedConversionTests.cs (1)
1149
var comp = CreateCompilation(source1 + source2 + source3 + source4 + source5, options: TestOptions.
UnsafeReleaseDll
);
Semantics\UseSiteErrorTests.cs (1)
2250
CSharpCompilationOptions options = TestOptions.
UnsafeReleaseDll
;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (44)
SymbolDisplay\SymbolDisplayTests.cs (1)
8429
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Symbols\ConversionTests.cs (1)
1994
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Symbols\FunctionPointerTypeSymbolTests.cs (3)
23
return CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
, targetFramework: targetFramework);
1959
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
2085
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
Symbols\GenericConstraintTests.cs (1)
338
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Symbols\RequiredMembersTests.cs (1)
219
", options: TestOptions.
UnsafeReleaseDll
);
Symbols\Retargeting\RetargetingTests.cs (2)
975
}}", new[] { retargeted1Ref, consistentRef, ilRef }, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard);
980
options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9,
Symbols\Source\ClsComplianceTests.cs (8)
443
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
566
CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
763
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(
850
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext).VerifyDiagnostics();
1182
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1229
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1272
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2936
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)
2833
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2863
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2880
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2902
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9257
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9272
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11885
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
14370
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14729
", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15373
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
15387
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
15403
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15418
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15433
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15445
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15460
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15490
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15508
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15523
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15537
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15554
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15588
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15613
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15634
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15825
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
CSharpTestBase.cs (5)
2174
options: TestOptions.
UnsafeReleaseDll
);
2192
options: TestOptions.
UnsafeReleaseDll
);
2211
options: options ?? TestOptions.
UnsafeReleaseDll
,
2526
var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2543
var reference = CreateCompilation(new[] { TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();