Mercurial > projects > ldc
annotate test/stdiotest.d @ 275:665b81613475 trunk
[svn r296] Removed: the 'suite' dir, it never took off!
Fixed: foreach statement, key-type checks were buggy.
Fixed: setting LLVMDC versions on the command line is now an error.
Fixed: array compare runtime had incorrect param attrs on call.
Fixed: index expressions on dynamic array slices w/o storage was broken.
Fixed: scope classes had incorrect finalization in some cases.
Fixed: when outputting !ClassInfoS !OffsetTypeInfoS, static class members were trying to be included, crashing the compiler.
Fixed: calling LLVMDC with -inline but not any -O option caused assertion failure.
Changed: the runtime now uses a single interface to "get" to !TypeInfoS, part of eliminating duplicate !TypeInfo codegen.
author | lindquist |
---|---|
date | Thu, 19 Jun 2008 17:30:32 +0200 |
parents | 5825d48b27d1 |
children |
rev | line source |
---|---|
22
a6360e68134a
[svn r26] * Fixed templates defining a constant value
lindquist
parents:
diff
changeset
|
1 module stdiotest; |
a6360e68134a
[svn r26] * Fixed templates defining a constant value
lindquist
parents:
diff
changeset
|
2 |
a6360e68134a
[svn r26] * Fixed templates defining a constant value
lindquist
parents:
diff
changeset
|
3 import std.stdio; |
a6360e68134a
[svn r26] * Fixed templates defining a constant value
lindquist
parents:
diff
changeset
|
4 |
131 | 5 T typed(T)(T x) |
6 { | |
7 return x; | |
8 } | |
9 | |
22
a6360e68134a
[svn r26] * Fixed templates defining a constant value
lindquist
parents:
diff
changeset
|
10 void main() |
a6360e68134a
[svn r26] * Fixed templates defining a constant value
lindquist
parents:
diff
changeset
|
11 { |
131 | 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));}*/ | |
22
a6360e68134a
[svn r26] * Fixed templates defining a constant value
lindquist
parents:
diff
changeset
|
28 } |