60 references to UnsafeDebugExe
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (45)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
1409
verifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"1", verify: Verification.Fails);
CodeGen\CodeGenAsyncTests.cs (10)
913
CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
972
CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
1037
CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
).VerifyDiagnostics(
1063
CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
.WithWarningLevel(7)).VerifyDiagnostics(
1144
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.
UnsafeDebugExe
, verify: Verification.Passes);
1205
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.
UnsafeDebugExe
, verify: Verification.Passes);
1246
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.
UnsafeDebugExe
, verify: Verification.Passes);
1305
CompileAndVerify(source, "0", options: TestOptions.
UnsafeDebugExe
);
1389
CompileAndVerify(source, "0", options: TestOptions.
UnsafeDebugExe
);
1451
CompileAndVerify(source, "0", options: TestOptions.
UnsafeDebugExe
);
CodeGen\CodeGenFunctionPointersTests.cs (2)
7464
verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options: TestOptions.
UnsafeDebugExe
);
11753
var verifier = CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
, expectedOutput: "True", symbolValidator: static module =>
CodeGen\CodeGenRefConditionalOperatorTests.cs (2)
1239
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
1318
verify(TestOptions.
UnsafeDebugExe
, @"
CodeGen\CodeGenRefLocalTests.cs (5)
3446
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
3513
verify(TestOptions.
UnsafeDebugExe
, @"
3572
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
3632
verify(TestOptions.
UnsafeDebugExe
, Verification.Fails, @"
3686
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 (1)
430
options: TestOptions.
UnsafeDebugExe
,
CodeGen\CodeGenTests.cs (4)
14792
options: TestOptions.
UnsafeDebugExe
.WithMetadataImportOptions(MetadataImportOptions.All),
16226
comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.
UnsafeDebugExe
);
16683
comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.
UnsafeDebugExe
);
16707
comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.
UnsafeDebugExe
);
CodeGen\CodeGenTupleTest.cs (1)
27654
var compilation = CreateCompilationWithMscorlib45(source, null, TestOptions.
UnsafeDebugExe
);
CodeGen\UnsafeTests.cs (7)
326
var compVerifierUnoptimized = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: "2", verify: Verification.Fails);
1640
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"a", verify: Verification.Fails);
1684
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"h", verify: Verification.Fails);
1741
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeDebugExe
, expectedOutput: @"hTrue", verify: Verification.Fails);
6215
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeDebugExe
, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main");
6216
CompileAndVerify(string.Format(template, "checked "), options: TestOptions.
UnsafeDebugExe
, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main");
11210
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);
PDB\PDBTests.cs (6)
7071
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
7189
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
7264
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
7398
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
7558
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
7604
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeDebugExe
);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
12549
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeDebugExe
, verify: Verification.Fails);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\BindingAsyncTasklikeMoreTests.cs (1)
1117
var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.
UnsafeDebugExe
);
Semantics\NameOfTests.cs (3)
1194
var compilation = CreateCompilationWithMscorlib45(source, null, TestOptions.
UnsafeDebugExe
);
1276
var compilation = CreateCompilationWithMscorlib45(source, null, TestOptions.
UnsafeDebugExe
);
1308
var compilation = CreateCompilationWithMscorlib45(source, null, TestOptions.
UnsafeDebugExe
);
Semantics\RecordStructTests.cs (1)
1672
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeDebugExe
);
Semantics\RecordTests.cs (1)
1416
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.
UnsafeDebugExe
);
Semantics\RefFieldTests.cs (5)
9751
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net70);
9790
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net70);
9830
var comp = CreateCompilation(source, options: TestOptions.
UnsafeDebugExe
, targetFramework: TargetFramework.Net70);
16323
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.
UnsafeDebugExe
);
27344
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)
8430
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugExe
, parseOptions: DefaultParseOptions);
8446
var comp = CreateCompilation(text, options: TestOptions.
UnsafeDebugExe
, parseOptions: DefaultParseOptions);