annotate run/bug_elfobj_1251_A.d @ 1586:a74f0139fc3d

Fix tests using typeof on types.
author Christian Kamm <kamm incasoftware de>
date Thu, 21 Aug 2008 15:42:21 +0200
parents d3a3e0c251d8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
182
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
1 // $HeadURL$
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
2 // $Date$
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
3 // $Author$
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
4
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
5 // @author@ Ben Hinkle <bhinkle4@juno.com>
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
6 // @date@ 2004-12-09
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
7 // @uri@ news:cp86l0$106o$2@digitaldaemon.com
1384
d3a3e0c251d8 nntp: -> http:
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2491
182
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
9
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
10 module dstress.run.bug_elfobj_1251_A;
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
11
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
12 bool foo() {
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
13 int x;
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
14 for (;;) {
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
15 if (x == 0)
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
16 return true;
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
17 x = 1;
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
18 }
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
19 return false;
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
20 }
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
21
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
22 int main(){
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
23 foo();
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
24 return 0;
2006052ab834 bug_elfobj_1251
thomask
parents:
diff changeset
25 }