diff tangotests/templ1.d @ 171:95f07e3f8bb9 trunk

[svn r187] Fixed missing definitions of instances of imported struct template declarations.
author lindquist
date Tue, 06 May 2008 05:25:53 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tangotests/templ1.d	Tue May 06 05:25:53 2008 +0200
@@ -0,0 +1,13 @@
+module tangotests.templ1;
+
+import Util = tango.text.Util;
+
+extern(C) int printf(char*, ...);
+
+void main()
+{
+    foreach (line; Util.lines("a\nb\nc"))
+    {
+        printf("%.*s\n", line.length, line.ptr);
+    }
+}