131 references to UnsafeDebugExe
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (48)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
1417
verifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"1", verify: Verification.Fails);
CodeGen\CodeGenAsyncTests.cs (10)
2062
CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
2121
CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
2185
CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
2211
CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
.WithWarningLevel(7)).VerifyDiagnostics(
2292
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.
UnsafeDebugExe
, verify: Verification.Passes);
2353
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.
UnsafeDebugExe
, verify: Verification.Passes);
2394
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.
UnsafeDebugExe
, verify: Verification.Passes);
2474
CompileAndVerify(source, "0", options: TestOptions.
UnsafeDebugExe
);
2558
CompileAndVerify(source, "0", options: TestOptions.
UnsafeDebugExe
);
2620
CompileAndVerify(source, "0", options: TestOptions.
UnsafeDebugExe
);
CodeGen\CodeGenFunctionPointersTests.cs (9)
7475
verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options: TestOptions.
UnsafeDebugExe
);
11662
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
11725
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
11788
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
11847
var verifier = CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
, expectedOutput: "True", symbolValidator: static module =>
12122
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
12265
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
12304
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
12352
var verifier = CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.
UnsafeDebugExe
, symbolValidator: module =>
CodeGen\CodeGenRefConditionalOperatorTests.cs (2)
1247
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
1326
verify(TestOptions.
UnsafeDebugExe
, @"
CodeGen\CodeGenRefLocalTests.cs (5)
4232
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
4302
verify(TestOptions.
UnsafeDebugExe
, @"
4364
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
4425
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
4480
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
CodeGen\CodeGenRefOutTests.cs (5)
527
verify(TestOptions.
UnsafeDebugExe
, @"
596
verify(TestOptions.
UnsafeDebugExe
, @"
668
verify(TestOptions.
UnsafeDebugExe
, @"
746
verify(TestOptions.
UnsafeDebugExe
, @"
812
verify(TestOptions.
UnsafeDebugExe
, @"
CodeGen\CodeGenStackAllocInitializerTests.cs (2)
430
options: TestOptions.
UnsafeDebugExe
,
1524
verify: Verification.Fails, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
CodeGen\CodeGenTests.cs (4)
14809
options: TestOptions.
UnsafeDebugExe
.WithMetadataImportOptions(MetadataImportOptions.All),
16291
comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.
UnsafeDebugExe
);
16748
comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.
UnsafeDebugExe
);
16772
comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.
UnsafeDebugExe
);
CodeGen\CodeGenTupleTest.cs (1)
27616
var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeDebugExe
);
CodeGen\UnsafeTests.cs (8)
456
var compVerifierUnoptimized = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: "2", verify: Verification.Fails);
2046
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"a", verify: Verification.Fails);
2090
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"h", verify: Verification.Fails);
2147
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"hTrue", verify: Verification.Fails);
6813
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeDebugExe
, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePointDisplay: SequencePointDisplayMode.Minimal);
6814
CompileAndVerify(string.Format(template, "checked "), options: TestOptions.
UnsafeDebugExe
, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePointDisplay: SequencePointDisplayMode.Minimal);
10799
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugExe
);
11962
var v = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: "System.Byte[]", verify: Verification.Fails);
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (1)
1225
CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.
UnsafeDebugExe
, expectedOutput: expectedOutput, verify: Verification.Fails);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (13)
Emit\LocalStateTracing\LocalStateTracingTests.cs (4)
196
options: (expectedOutput != null) ? TestOptions.
UnsafeDebugExe
: TestOptions.UnsafeDebugDll,
206
options: (expectedOutput != null) ? TestOptions.
UnsafeDebugExe
: TestOptions.UnsafeDebugDll,
240
options: TestOptions.
UnsafeDebugExe
,
373
options: TestOptions.
UnsafeDebugExe
,
Emit\ManagedAddressTests.cs (1)
52
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
Emit\RuntimeProbing\ModuleCancellationTests.cs (1)
22
options: options ?? (expectedOutput != null ? TestOptions.
UnsafeDebugExe
: TestOptions.UnsafeDebugDll),
Emit\RuntimeProbing\StackOverflowProbingTests.cs (1)
21
options: options ?? (expectedOutput != null ? TestOptions.
UnsafeDebugExe
: TestOptions.UnsafeDebugDll),
PDB\PDBTests.cs (6)
7159
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
7277
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
7352
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
7486
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
7646
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
7692
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (46)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
12725
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
, verify: Verification.Fails);
RefReadonlyParameterTests.cs (27)
7906
CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
7973
expectedOutput: "r i o v i i v v v v v", options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics();
8020
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8047
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8048
CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8105
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics); CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8106
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8107
CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8140
CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8200
CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8208
expectedOutput: "XYYY", options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8217
expectedOutput: "XYXX", options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8254
var comp = CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
);
8275
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8276
CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8300
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
,
8302
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.
UnsafeDebugExe
,
8317
CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
,
8332
CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
,
8334
CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.
UnsafeDebugExe
,
8366
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8380
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
,
8382
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.
UnsafeDebugExe
,
8396
CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8408
CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8409
CreateCompilation(source3, new[] { comp1Ref }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
Semantics\CollectionExpressionTests.cs (4)
45650
var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.
UnsafeDebugExe
);
45666
var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.
UnsafeDebugExe
);
45730
var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.
UnsafeDebugExe
);
45746
var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.
UnsafeDebugExe
);
Semantics\ExtensionTests.cs (8)
15264
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugExe
);
15297
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugExe
);
15342
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugExe
);
19784
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
);
29129
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugExe
);
29183
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugExe
);
29254
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net90);
29286
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net90);
Semantics\ExtensionTests2.cs (4)
551
var comp = CreateCompilation([src, OverloadResolutionPriorityAttributeDefinition], options: TestOptions.
UnsafeDebugExe
);
36295
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugExe
);
36467
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugExe
);
36497
var comp = CreateCompilation(src, options: TestOptions.
UnsafeDebugExe
);
Semantics\RecordTests.cs (2)
1418
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugExe
);
1451
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugExe
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\BindingAsyncTasklikeMoreTests.cs (1)
1124
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeDebugExe
);
Semantics\InterceptorsTests.cs (6)
2086
var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, options: TestOptions.
UnsafeDebugExe
);
2207
var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: TestOptions.
UnsafeDebugExe
);
7958
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
);
7978
options: TestOptions.
UnsafeDebugExe
,
8011
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
);
8031
options: TestOptions.
UnsafeDebugExe
,
Semantics\NameOfTests.cs (3)
1499
var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeDebugExe
);
1581
var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeDebugExe
);
1613
var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeDebugExe
);
Semantics\NullConditionalAssignmentTests.cs (2)
1058
var verifier = CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
, verify: Verification.Skipped, expectedOutput: "1324");
1100
var verifier = CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
, verify: Verification.Skipped, expectedOutput: "1324");
Semantics\RecordStructTests.cs (1)
1742
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeDebugExe
);
Semantics\RefFieldTests.cs (5)
10263
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net70);
10302
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net70);
10342
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net70);
16880
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.
UnsafeDebugExe
);
28705
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.
UnsafeDebugExe
);
Semantics\StructConstructorTests.cs (1)
3940
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
);
Semantics\TopLevelStatementsTests.cs (2)
8578
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugExe
, parseOptions: DefaultParseOptions);
8594
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugExe
, parseOptions: DefaultParseOptions);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\AnonymousTypesSemanticsTests.cs (1)
1899
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
);
Symbols\ExtensionMethodTests.cs (2)
4385
var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.
UnsafeDebugExe
);
4482
var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.
UnsafeDebugExe
);