114 references to UnsafeDebugExe
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (48)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
1406verifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"1", verify: Verification.Fails);
CodeGen\CodeGenAsyncTests.cs (10)
917CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails) 976CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails) 1041CreateCompilation(source, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 1067CreateCompilation(source, options: TestOptions.UnsafeDebugExe.WithWarningLevel(7)).VerifyDiagnostics( 1148CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeDebugExe, verify: Verification.Passes); 1209CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeDebugExe, verify: Verification.Passes); 1250CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeDebugExe, verify: Verification.Passes); 1309CompileAndVerify(source, "0", options: TestOptions.UnsafeDebugExe); 1393CompileAndVerify(source, "0", options: TestOptions.UnsafeDebugExe); 1455CompileAndVerify(source, "0", options: TestOptions.UnsafeDebugExe);
CodeGen\CodeGenFunctionPointersTests.cs (9)
7477verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options: TestOptions.UnsafeDebugExe); 11673var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 11736var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 11799var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 11858var verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, expectedOutput: "True", symbolValidator: static module => 12133var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 12276var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 12315var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 12359var verifier = CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.UnsafeDebugExe, symbolValidator: module =>
CodeGen\CodeGenRefConditionalOperatorTests.cs (2)
1240verify(TestOptions.UnsafeDebugExe, Verification.Fails, @" 1319verify(TestOptions.UnsafeDebugExe, @"
CodeGen\CodeGenRefLocalTests.cs (5)
4222verify(TestOptions.UnsafeDebugExe, Verification.Fails, @" 4289verify(TestOptions.UnsafeDebugExe, @" 4348verify(TestOptions.UnsafeDebugExe, Verification.Fails, @" 4408verify(TestOptions.UnsafeDebugExe, Verification.Fails, @" 4462verify(TestOptions.UnsafeDebugExe, Verification.Fails, @"
CodeGen\CodeGenRefOutTests.cs (5)
525verify(TestOptions.UnsafeDebugExe, @" 594verify(TestOptions.UnsafeDebugExe, @" 666verify(TestOptions.UnsafeDebugExe, @" 744verify(TestOptions.UnsafeDebugExe, @" 810verify(TestOptions.UnsafeDebugExe, @"
CodeGen\CodeGenStackAllocInitializerTests.cs (2)
430options: TestOptions.UnsafeDebugExe, 1524verify: Verification.Fails, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
CodeGen\CodeGenTests.cs (4)
14809options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 16291comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeDebugExe); 16748comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeDebugExe); 16772comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeDebugExe);
CodeGen\CodeGenTupleTest.cs (1)
27616var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe);
CodeGen\UnsafeTests.cs (8)
456var compVerifierUnoptimized = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "2", verify: Verification.Fails); 1770var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"a", verify: Verification.Fails); 1814var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"h", verify: Verification.Fails); 1871var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"hTrue", verify: Verification.Fails); 6537CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main"); 6538CompileAndVerify(string.Format(template, "checked "), options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main"); 10523var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe); 11686var v = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "System.Byte[]", verify: Verification.Fails);
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (1)
1225CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (13)
Emit\LocalStateTracing\LocalStateTracingTests.cs (4)
186options: (expectedOutput != null) ? TestOptions.UnsafeDebugExe : TestOptions.UnsafeDebugDll, 196options: (expectedOutput != null) ? TestOptions.UnsafeDebugExe : TestOptions.UnsafeDebugDll, 230options: TestOptions.UnsafeDebugExe, 363options: TestOptions.UnsafeDebugExe,
Emit\ManagedAddressTests.cs (1)
52var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(
Emit\RuntimeProbing\ModuleCancellationTests.cs (1)
28options: options ?? (expectedOutput != null ? TestOptions.UnsafeDebugExe : TestOptions.UnsafeDebugDll),
Emit\RuntimeProbing\StackOverflowProbingTests.cs (1)
27options: options ?? (expectedOutput != null ? TestOptions.UnsafeDebugExe : TestOptions.UnsafeDebugDll),
PDB\PDBTests.cs (6)
7159var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7277var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7352var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7486var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7646var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7692var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (33)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
12686var comp = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, verify: Verification.Fails);
RefReadonlyParameterTests.cs (27)
7882CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 7949expectedOutput: "r i o v i i v v v v v", options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(); 7996CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8023CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8024CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8081CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8082CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8083CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8116CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8176CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8184expectedOutput: "XYYY", options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8193expectedOutput: "XYXX", options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8230var comp = CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe); 8251CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8252CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8276CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe, 8278CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.UnsafeDebugExe, 8293CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe, 8308CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe, 8310CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.UnsafeDebugExe, 8342CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8356CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe, 8358CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.UnsafeDebugExe, 8372CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8384CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8385CreateCompilation(source3, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
Semantics\CollectionExpressionTests.cs (4)
42719var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.UnsafeDebugExe); 42735var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.UnsafeDebugExe); 42799var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.UnsafeDebugExe); 42815var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.UnsafeDebugExe);
Semantics\RecordTests.cs (1)
1411var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugExe);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\BindingAsyncTasklikeMoreTests.cs (1)
1117var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugExe);
Semantics\InterceptorsTests.cs (6)
2048var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, options: TestOptions.UnsafeDebugExe); 2169var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: TestOptions.UnsafeDebugExe); 7920var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe); 7940options: TestOptions.UnsafeDebugExe, 7973var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe); 7993options: TestOptions.UnsafeDebugExe,
Semantics\NameOfTests.cs (3)
1498var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe); 1580var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe); 1612var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe);
Semantics\RecordStructTests.cs (1)
1672var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugExe);
Semantics\RefFieldTests.cs (5)
10201var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10240var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10280var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 16813var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugExe); 28662var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugExe);
Semantics\StructConstructorTests.cs (1)
3940var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe);
Semantics\TopLevelStatementsTests.cs (2)
8442var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe, parseOptions: DefaultParseOptions); 8458var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe, parseOptions: DefaultParseOptions);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSemanticsTests.cs (1)
1899var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe);