1413
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Gregor Richards <Richards@codu.org>
|
|
6 // @date@ 2007-02-15
|
|
7 // @uri@ http://www.digitalmars.com/webnews/newsgroups.php?group=digitalmars.D&article_id=48811
|
|
8 // @desc@ Re: Compile time function execution...
|
|
9
|
|
10 module dstress.run.m.mixin_28_A;
|
|
11
|
|
12 int state;
|
|
13
|
|
14 void bar(){
|
|
15 state++;
|
|
16 }
|
|
17
|
|
18 char[] foo(){
|
|
19 return "bar();";
|
|
20 }
|
|
21
|
|
22 int main(){
|
|
23 if(0 != state){
|
|
24 assert(0);
|
|
25 }
|
|
26
|
|
27 mixin(foo());
|
|
28
|
|
29 if(1 != state){
|
|
30 assert(0);
|
|
31 }
|
|
32 return 0;
|
|
33 }
|