Mercurial > projects > ldc
annotate tests/mini/imag1.d @ 1134:152bd2c804d0
Update comments now that LLVM PR3861 has been fixed. However, since
conditionally removing the workaround makes the ABI dependent on LLVM version,
I reconsidered that.
(The same revision of LDC compiling for the same target should probably produce
code that follows the same ABI, right?)
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Tue, 24 Mar 2009 02:46:57 +0100 |
parents | 1bb99290e03a |
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 } |