Esempio n. 1
0
 static int Main()
 {
   Repro r = new Repro();
   r.foo();
   Console.WriteLine(r.stack[0]);
   return r.stack[0] == 42 ? 0 : 1;
 }
Esempio n. 2
0
    public static int Main()
    {
        Repro r = new Repro();

        r.foo();
        Console.WriteLine(r.stack[0]);
        return(r.stack[0] == 42 ? 0 : 1);
    }
Esempio n. 3
0
    private static int Main()
    {
        byte[] buf = new byte[8];
        WriteFloat(buf, 0, 123.0F);
        WriteFloat(buf, 4, 456.0F);
        Repro pt = new Repro();
        Test(pt, buf);

        if (Convert.ToInt32(pt.x) != 123 || Convert.ToInt32(pt.y) != 456)
        {
            Console.WriteLine("FAIL!");
            Console.WriteLine("Unexpected values for pt.x and pt.y.");
            Console.WriteLine(pt.x);
            Console.WriteLine(pt.y);
            return 101;
        }

        Console.WriteLine("PASS!");
        return 100;
    }
Esempio n. 4
0
    private static int Main()
    {
        byte[] buf = new byte[8];
        WriteFloat(buf, 0, 123.0F);
        WriteFloat(buf, 4, 456.0F);
        Repro pt = new Repro();

        Test(pt, buf);

        if (Convert.ToInt32(pt.x) != 123 || Convert.ToInt32(pt.y) != 456)
        {
            Console.WriteLine("FAIL!");
            Console.WriteLine("Unexpected values for pt.x and pt.y.");
            Console.WriteLine(pt.x);
            Console.WriteLine(pt.y);
            return(101);
        }

        Console.WriteLine("PASS!");
        return(100);
    }
Esempio n. 5
0
File: test.cs Progetto: mono/gert
 	static int Main()
 	{
 		Repro r = new Repro();
 		r.foo();
		return r.stack[0] == 42 ? 0 : 1;
 	}
Esempio n. 6
0
 static void Gazonk(Repro f)
 {
 }
Esempio n. 7
0
 static void Gazonk(Repro f)
 {
     f.PrintOk();
 }
 public static int Main()
 {
     Repro r = new Repro();
     DoIt d = r.DoItRight;
     return r.Accomplice(1, 2, 3, d);
 }