annotate run/o/opModule_01_A.d @ 1319:81222734adf3

sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:58:06 +0000
parents 7d45295ced76
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1009
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
1 // $HeadURL$
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
2 // $Date$
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
3 // $Author$
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
4
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
5 // @author@ <lio@lunesu.com>
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
6 // @date@ 2006-05-18
1319
81222734adf3 sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1009
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=145
1009
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
8
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
9 module dstress.run.o.opModule_01_A;
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
10
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
11 float foo(float f){
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
12 return f + 1.0f;
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
13 }
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
14
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
15 int main(){
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
16 if(cast(int) .foo(2.0f) != 3){
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
17 assert(0);
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
18 }
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
19 return 0;
7d45295ced76 Can't refer to global scope after a cast
thomask
parents:
diff changeset
20 }