annotate run/static_18.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents 6e4063f99377
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 122
diff changeset
1 // $HeadURL$
a33ad7189d21 1) news:// -> news:
thomask
parents: 122
diff changeset
2 // $Date$
a33ad7189d21 1) news:// -> news:
thomask
parents: 122
diff changeset
3 // $Author$
a33ad7189d21 1) news:// -> news:
thomask
parents: 122
diff changeset
4
122
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com>
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
6 // @date@ 2004-11-09
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 122
diff changeset
7 // @uri@ news:cmq61m$5rn$1@digitaldaemon.com
1487
6e4063f99377 changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2218
122
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
9
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
10 // __DSTRESS_DFLAGS__ -d
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
11
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
12 module dstress.run.static_18;
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
13
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
14 class MyClass{
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
15 static{
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
16 deprecated int foo(){
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
17 return 1;
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
18 }
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
19 }
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
20
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
21 static deprecated int bar(){
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
22 return foo()+3;
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
23 }
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
24 }
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
25
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
26 int main(){
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
27 assert(MyClass.bar()==4);
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
28 return 0;
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
29 }