view tests/code/cast_2.d @ 69:688b516408cd new_gen

Added 3 new small tests.
author Anders Johnsen <skabet@gmail.com>
date Thu, 01 May 2008 19:26:22 +0200
parents
children
line wrap: on
line source




int main()
{
    byte y = 44;

    int b = y * cast(byte)66;

    if(b == 88)
        return 0;
    else
        return 1;
}