Mercurial > projects > dstress
annotate run/in_02.d @ 1593:a2c2122f2f66
Remove error line information for simple tests that may legitimately have
another line referenced in the error message.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 28 Aug 2008 17:30:16 +0200 |
parents | f87ba6507260 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.in_02; | |
0 | 6 |
7 struct MyStruct{ | |
8 int x; | |
9 } | |
10 | |
11 void check(in MyStruct s){ | |
12 assert(s.x==1); | |
13 s.x++; | |
14 assert(s.x==2); | |
15 } | |
16 | |
17 int main(){ | |
18 MyStruct s; | |
19 s.x=1; | |
20 assert(s.x==1); | |
21 check(s); | |
22 assert(s.x==1); | |
23 return 0; | |
24 } |