Mercurial > projects > dstress
comparison complex/assert_21/a.d @ 1526:6caf8b7e726a
[Issue 1121] Assertion codegen issue with templated function
Jarrett Billingsley <jarrett.billingsley@gmail.com>
2007-04-10
http://d.puremagic.com/issues/show_bug.cgi?id=1121
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:30:54 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1525:ce8c04d69094 | 1526:6caf8b7e726a |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Jarrett Billingsley <jarrett.billingsley@gmail.com> | |
6 // @date@ 2007-04-10 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1121 | |
8 // @desc@ [Issue 1121] Assertion codegen issue with templated function | |
9 | |
10 import b; | |
11 | |
12 int main(){ | |
13 try{ | |
14 foo(); | |
15 func!(void)(); | |
16 }catch(Exception e){ | |
17 if("AssertError Failure b.d(13) GO" == e.toString()){ | |
18 return 0; | |
19 } | |
20 } | |
21 | |
22 assert(0); | |
23 } | |
24 |