view tests/mini/arrays13.d @ 977:3efbe9b0dd36

Update .hgignore due to moved(?) idgen/impcnvgen locations. Also add *.patch and *.diff.
author Frits van Bommel <fvbommel wxs.nl>
date Tue, 17 Feb 2009 23:14:19 +0100
parents 1bb99290e03a
children
line wrap: on
line source

module arrays13;

extern(C) int printf(char*, ...);

void main()
{
    char[] a = "hello";

    assert(a >  "hel");
    assert(a >= "hel");
    assert(a <  "helloo");
    assert(a <= "helloo");
    assert(a >  "betty");
    assert(a >= "betty");
    assert(a == "hello");
    assert(a <= "hello");
    assert(a >= "hello");
}