comparison test/calls1.d @ 291:068cb3c60afb trunk

[svn r312] Changed assert codegen to insert an unreachable terminator after the call to the assert function, which currently calls abort(). Changed array comparison runtime support to pass the array typeinfo instead of the element typeinfo. This allows a cleaner and faster implementation.
author lindquist
date Sat, 21 Jun 2008 21:16:26 +0200
parents d9d5d59873d8
children
comparison
equal deleted inserted replaced
290:ebaf65fc4726 291:068cb3c60afb
1 module calls1; 1 module calls1;
2 import tango.core.Vararg; 2 import tango.core.Vararg;
3 extern(C) int printf(char*, ...);
3 void main() 4 void main()
4 { 5 {
5 {int a = byVal1(3);} 6 {int a = byVal1(3);}
6 {int a = void; byRef1(a);} 7 {int a = void; byRef1(a);}
7 {char[] c = void; refType(c);} 8 {char[] c = void; refType(c);}