Adding check to bypass decoding pdbs that have no sequence points. (#19815)
[mono-project.git] / sdks / wasm / debugger-test2.cs
blob907cc52e3364495cfe84727c0e719959cf32cbac
1 using System;
3 public class Misc { //Only append content to this class as the test suite depends on line info
4 public static int CreateObject (int foo, int bar) {
5 var f = new Fancy () {
6 Foo = foo,
7 Bar = bar,
8 };
10 Console.WriteLine ($"{f.Foo} {f.Bar}");
11 return f.Foo + f.Bar;
15 public class Fancy {
16 public int Foo;
17 public int Bar { get ; set; }
18 public static void Types () {
19 double dPI = System.Math.PI;
20 float fPI = (float)System.Math.PI;
22 int iMax = int.MaxValue;
23 int iMin = int.MinValue;
24 uint uiMax = uint.MaxValue;
25 uint uiMin = uint.MinValue;
27 long l = uiMax * (long)2;
28 long lMax = long.MaxValue; // cannot be represented as double
29 long lMin = long.MinValue; // cannot be represented as double
31 sbyte sbMax = sbyte.MaxValue;
32 sbyte sbMin = sbyte.MinValue;
33 byte bMax = byte.MaxValue;
34 byte bMin = byte.MinValue;
36 short sMax = short.MaxValue;
37 short sMin = short.MinValue;
38 ushort usMin = ushort.MinValue;
39 ushort usMax = ushort.MaxValue;
41 var d = usMin + usMax;