Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
340:351c0077d0b3 | 341:1bb99290e03a |
---|---|
1 module stdiotest; | |
2 | |
3 import std.stdio; | |
4 | |
5 T typed(T)(T x) | |
6 { | |
7 return x; | |
8 } | |
9 | |
10 void main() | |
11 { | |
12 /*char[] str = "hello"; | |
13 writefln(str); | |
14 | |
15 writefln("hello world");*/ | |
16 | |
17 char[] fmt = "%s"; | |
18 writefln(2.0f); | |
19 | |
20 /*{writefln(typed!(byte)(1));} | |
21 {writefln(typed!(short)(2));} | |
22 {writefln(typed!(int)(3));} | |
23 {writefln(typed!(long)(-4));} | |
24 {writefln(typed!(ulong)(5));} | |
25 {writefln("%f", typed!(float)(6));} | |
26 {writefln("%f", typed!(double)(7));} | |
27 {writefln("%f", typed!(real)(8));}*/ | |
28 } |