annotate tests/mini/stdiotest.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/stdiotest.d@5825d48b27d1
children
rev   line source
lindquist@22 1 module stdiotest;
lindquist@22 2
lindquist@22 3 import std.stdio;
lindquist@22 4
lindquist@131 5 T typed(T)(T x)
lindquist@131 6 {
lindquist@131 7 return x;
lindquist@131 8 }
lindquist@131 9
lindquist@22 10 void main()
lindquist@22 11 {
lindquist@131 12 /*char[] str = "hello";
lindquist@131 13 writefln(str);
lindquist@131 14
lindquist@131 15 writefln("hello world");*/
lindquist@131 16
lindquist@131 17 char[] fmt = "%s";
lindquist@131 18 writefln(2.0f);
lindquist@131 19
lindquist@131 20 /*{writefln(typed!(byte)(1));}
lindquist@131 21 {writefln(typed!(short)(2));}
lindquist@131 22 {writefln(typed!(int)(3));}
lindquist@131 23 {writefln(typed!(long)(-4));}
lindquist@131 24 {writefln(typed!(ulong)(5));}
lindquist@131 25 {writefln("%f", typed!(float)(6));}
lindquist@131 26 {writefln("%f", typed!(double)(7));}
lindquist@131 27 {writefln("%f", typed!(real)(8));}*/
lindquist@22 28 }