Exemplo n.º 1
0
    static int test_0_vtype_phi()
    {
        VTypePhi v1 = new VTypePhi()
        {
            i = 1
        };
        VTypePhi v2 = new VTypePhi()
        {
            i = 2
        };

        if (vtype_phi(v1, v2, true) != 1)
        {
            return(1);
        }
        if (vtype_phi(v1, v2, false) != 2)
        {
            return(2);
        }

        return(0);
    }
Exemplo n.º 2
0
	static int test_0_vtype_phi ()
	{
		VTypePhi v1 = new VTypePhi () { i = 1 };
		VTypePhi v2 = new VTypePhi () { i = 2 };

		if (vtype_phi (v1, v2, true) != 1)
			return 1;
		if (vtype_phi (v1, v2, false) != 2)
			return 2;

		return 0;
	}
Exemplo n.º 3
0
	static int vtype_phi (VTypePhi v1, VTypePhi v2, bool first) {
		VTypePhi v = first ? v1 : v2;

		return v.i;
	}
Exemplo n.º 4
0
    static int vtype_phi(VTypePhi v1, VTypePhi v2, bool first)
    {
        VTypePhi v = first ? v1 : v2;

        return(v.i);
    }