Mercurial > projects > ldc
view test/arrays13.d @ 200:e937752e4541 trunk
[svn r216] don't crash on foreach over zero-length static array
author | ChristianK |
---|---|
date | Mon, 12 May 2008 22:27:05 +0200 |
parents | c44e6a711885 |
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"); }