annotate test/arrays13.d @ 175:c44e6a711885 trunk

[svn r191] Fixed: array literals did not support all type/storage combinations. Fixed: with expression had broke somewhere along the way.
author lindquist
date Wed, 07 May 2008 00:01:13 +0200
parents 5071469303d4
children
rev   line source
lindquist@100 1 module arrays13;
lindquist@100 2
lindquist@175 3 extern(C) int printf(char*, ...);
lindquist@175 4
lindquist@100 5 void main()
lindquist@100 6 {
lindquist@175 7 char[] a = "hello";
lindquist@100 8
lindquist@100 9 assert(a > "hel");
lindquist@100 10 assert(a >= "hel");
lindquist@100 11 assert(a < "helloo");
lindquist@100 12 assert(a <= "helloo");
lindquist@100 13 assert(a > "betty");
lindquist@100 14 assert(a >= "betty");
lindquist@100 15 assert(a == "hello");
lindquist@100 16 assert(a <= "hello");
lindquist@100 17 assert(a >= "hello");
lindquist@100 18 }