comparison 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
comparison
equal deleted inserted replaced
174:16e676ae5ab4 175:c44e6a711885
1 module arrays13; 1 module arrays13;
2
3 extern(C) int printf(char*, ...);
2 4
3 void main() 5 void main()
4 { 6 {
5 string a = "hello"; 7 char[] a = "hello";
6 8
7 assert(a > "hel"); 9 assert(a > "hel");
8 assert(a >= "hel"); 10 assert(a >= "hel");
9 assert(a < "helloo"); 11 assert(a < "helloo");
10 assert(a <= "helloo"); 12 assert(a <= "helloo");