110 references to UnsafeDebugExe
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (48)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
1406
verifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"1", verify: Verification.Fails);
CodeGen\CodeGenAsyncTests.cs (10)
917
CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
976
CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
1041
CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
1067
CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
.WithWarningLevel(7)).VerifyDiagnostics(
1148
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.
UnsafeDebugExe
, verify: Verification.Passes);
1209
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.
UnsafeDebugExe
, verify: Verification.Passes);
1250
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.
UnsafeDebugExe
, verify: Verification.Passes);
1309
CompileAndVerify(source, "0", options: TestOptions.
UnsafeDebugExe
);
1393
CompileAndVerify(source, "0", options: TestOptions.
UnsafeDebugExe
);
1455
CompileAndVerify(source, "0", options: TestOptions.
UnsafeDebugExe
);
CodeGen\CodeGenFunctionPointersTests.cs (9)
7477
verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options: TestOptions.
UnsafeDebugExe
);
11673
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
11736
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
11799
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
11858
var verifier = CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
, expectedOutput: "True", symbolValidator: static module =>
12133
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
12276
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
12315
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.
UnsafeDebugExe
, symbolValidator: static module =>
12359
var verifier = CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.
UnsafeDebugExe
, symbolValidator: module =>
CodeGen\CodeGenRefConditionalOperatorTests.cs (2)
1240
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
1319
verify(TestOptions.
UnsafeDebugExe
, @"
CodeGen\CodeGenRefLocalTests.cs (5)
4222
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
4289
verify(TestOptions.
UnsafeDebugExe
, @"
4348
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
4408
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
4462
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
CodeGen\CodeGenRefOutTests.cs (5)
525
verify(TestOptions.
UnsafeDebugExe
, @"
594
verify(TestOptions.
UnsafeDebugExe
, @"
666
verify(TestOptions.
UnsafeDebugExe
, @"
744
verify(TestOptions.
UnsafeDebugExe
, @"
810
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);
1770
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"a", verify: Verification.Fails);
1814
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"h", verify: Verification.Fails);
1871
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"hTrue", verify: Verification.Fails);
6537
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeDebugExe
, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main");
6538
CompileAndVerify(string.Format(template, "checked "), options: TestOptions.
UnsafeDebugExe
, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main");
10523
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugExe
);
11686
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 (9)
Emit\ManagedAddressTests.cs (1)
52
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
Emit\RuntimeProbing\ModuleCancellationTests.cs (1)
28
options: options ?? (expectedOutput != null ? TestOptions.
UnsafeDebugExe
: TestOptions.UnsafeDebugDll),
Emit\RuntimeProbing\StackOverflowProbingTests.cs (1)
27
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 (33)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
12686
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
, verify: Verification.Fails);
RefReadonlyParameterTests.cs (27)
7882
CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
7949
expectedOutput: "r i o v i i v v v v v", options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics();
7996
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8023
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8024
CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8081
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics); CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8082
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8083
CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8116
CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8176
CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8184
expectedOutput: "XYYY", options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8193
expectedOutput: "XYXX", options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8230
var comp = CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
);
8251
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8252
CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8276
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
,
8278
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.
UnsafeDebugExe
,
8293
CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
,
8308
CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
,
8310
CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.
UnsafeDebugExe
,
8342
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8356
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
,
8358
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.
UnsafeDebugExe
,
8372
CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
8384
CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
8385
CreateCompilation(source3, new[] { comp1Ref }, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(expectedDiagnostics);
Semantics\CollectionExpressionTests.cs (4)
42719
var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.
UnsafeDebugExe
);
42735
var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.
UnsafeDebugExe
);
42799
var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.
UnsafeDebugExe
);
42815
var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.
UnsafeDebugExe
);
Semantics\RecordTests.cs (1)
1411
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugExe
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\BindingAsyncTasklikeMoreTests.cs (1)
1117
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeDebugExe
);
Semantics\InterceptorsTests.cs (6)
1939
var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, options: TestOptions.
UnsafeDebugExe
);
2043
var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, options: TestOptions.
UnsafeDebugExe
);
7433
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
);
7453
options: TestOptions.
UnsafeDebugExe
,
7486
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
);
7506
options: TestOptions.
UnsafeDebugExe
,
Semantics\NameOfTests.cs (3)
1498
var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeDebugExe
);
1580
var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeDebugExe
);
1612
var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeDebugExe
);
Semantics\RecordStructTests.cs (1)
1672
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeDebugExe
);
Semantics\RefFieldTests.cs (5)
10201
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net70);
10240
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net70);
10280
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net70);
16813
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.
UnsafeDebugExe
);
28099
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)
8442
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugExe
, parseOptions: DefaultParseOptions);
8458
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugExe
, parseOptions: DefaultParseOptions);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSemanticsTests.cs (1)
1899
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
);