annotate run/odd_bug_02.d @ 1535:20d8ee6523e1

updated to DMD-1.013
author thomask
date Mon, 07 May 2007 05:19:57 +0000
parents 6e4063f99377
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 70
diff changeset
1 // $HeadURL$
a33ad7189d21 1) news:// -> news:
thomask
parents: 70
diff changeset
2 // $Date$
a33ad7189d21 1) news:// -> news:
thomask
parents: 70
diff changeset
3 // $Author$
a33ad7189d21 1) news:// -> news:
thomask
parents: 70
diff changeset
4
5
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
5 // @author@ Ben Hinkle <bhinkle4@juno.com>
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
6 // @date@ 2004-09-26
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 70
diff changeset
7 // @uri@ news:cj6g4d$9iv$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=1953
5
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
9
70
5f98d4a33d49 1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents: 18
diff changeset
10 module dstress.run.odd_bug_02;
5f98d4a33d49 1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents: 18
diff changeset
11
5f98d4a33d49 1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents: 18
diff changeset
12 // @WARNING@: this code requires phobos
5
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
13 import std.stdarg;
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
14
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
15 struct TestStruct{
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
16 void add(...){
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
17 TestStruct other = va_arg!(TestStruct)(_argptr);
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
18 foreach(int value; other){
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
19 foo();
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
20 }
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
21 }
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
22
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
23 void foo(){
18
33a25c1e1cfc various corrections/by-passes of known problems
thomask
parents: 5
diff changeset
24 assert(left is null);
5
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
25 bar();
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
26 }
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
27
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
28 void bar(){
18
33a25c1e1cfc various corrections/by-passes of known problems
thomask
parents: 5
diff changeset
29 assert(left is null);
5
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
30 }
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
31
1535
20d8ee6523e1 updated to DMD-1.013
thomask
parents: 1487
diff changeset
32 int opApply(int delegate(ref int val) dg){
5
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
33 return 0;
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
34 }
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
35
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
36 void* left;
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
37 }
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
38
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
39 int main(){
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
40 TestStruct t;
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
41 t.foo();
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
42 return 0;
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
43 }
e6777053bf1c added odd_bug_02 (digitalmars.D.bugs:1953)
thomask
parents:
diff changeset
44