Mercurial > projects > ldc
annotate test/imag1.d @ 85:f869c636a113 trunk
[svn r89] Fixed a bunch of problems with template instance across multiple modules.
Fixed initialization of function local static variables, with a non const initializer (now happens on first call using a global to make sure it only happens once.)
author | lindquist |
---|---|
date | Fri, 02 Nov 2007 06:32:32 +0100 |
parents | b86e00b938a5 |
children |
rev | line source |
---|---|
62
b86e00b938a5
[svn r66] Added support for imaginary floating point types
lindquist
parents:
diff
changeset
|
1 module imag1; |
b86e00b938a5
[svn r66] Added support for imaginary floating point types
lindquist
parents:
diff
changeset
|
2 |
b86e00b938a5
[svn r66] Added support for imaginary floating point types
lindquist
parents:
diff
changeset
|
3 void main() |
b86e00b938a5
[svn r66] Added support for imaginary floating point types
lindquist
parents:
diff
changeset
|
4 { |
b86e00b938a5
[svn r66] Added support for imaginary floating point types
lindquist
parents:
diff
changeset
|
5 ifloat f = 1.0i; |
b86e00b938a5
[svn r66] Added support for imaginary floating point types
lindquist
parents:
diff
changeset
|
6 auto x = 2.0i*f; |
b86e00b938a5
[svn r66] Added support for imaginary floating point types
lindquist
parents:
diff
changeset
|
7 } |