annotate tests/mini/lazy2.d @ 883:b52d5de7783f

GC defines and linkage changes.
author Christian Kamm <kamm incasoftware de>
date Thu, 08 Jan 2009 18:20:02 +0100
parents 1bb99290e03a
children
rev   line source
lindquist@335 1 module tangotests.lazy2;
lindquist@335 2
lindquist@335 3 extern(C) int printf(char*, ...);
lindquist@335 4
lindquist@335 5 void main()
lindquist@335 6 {
lindquist@335 7 lazy1("hello\n");
lindquist@335 8 }
lindquist@335 9
lindquist@335 10 void lazy1(lazy char[] str)
lindquist@335 11 {
lindquist@335 12 lazy2(str);
lindquist@335 13 }
lindquist@335 14
lindquist@335 15 void lazy2(lazy char[] msg)
lindquist@335 16 {
lindquist@335 17 printf("%.*s", msg.length, msg.ptr);
lindquist@335 18 }