Mercurial > projects > dstress
annotate run/odd_bug_02.d @ 5:e6777053bf1c
added odd_bug_02 (digitalmars.D.bugs:1953)
author | thomask |
---|---|
date | Sun, 26 Sep 2004 21:41:08 +0000 |
parents | |
children | 33a25c1e1cfc |
rev | line source |
---|---|
5 | 1 // @author@ Ben Hinkle <bhinkle4@juno.com> |
2 // @date@ 2004-09-26 | |
3 | |
4 import std.stdarg; | |
5 | |
6 struct TestStruct{ | |
7 void add(...){ | |
8 TestStruct other = va_arg!(TestStruct)(_argptr); | |
9 foreach(int value; other){ | |
10 foo(); | |
11 } | |
12 } | |
13 | |
14 void foo(){ | |
15 assert(left==null); | |
16 bar(); | |
17 } | |
18 | |
19 void bar(){ | |
20 assert(left==null); | |
21 } | |
22 | |
23 int opApply(int delegate(inout int val) dg){ | |
24 return 0; | |
25 } | |
26 | |
27 void* left; | |
28 } | |
29 | |
30 int main(){ | |
31 TestStruct t; | |
32 t.foo(); | |
33 return 0; | |
34 } | |
35 |