annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1526
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
1 // $HeadURL$
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
2 // $Date$
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
3 // $Author$
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
4
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
5 // @author@ Jarrett Billingsley <jarrett.billingsley@gmail.com>
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
6 // @date@ 2007-04-10
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1121
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
8 // @desc@ [Issue 1121] Assertion codegen issue with templated function
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
9
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
10 import b;
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
11
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
12 int main(){
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
13 try{
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
14 foo();
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
15 func!(void)();
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
16 }catch(Exception e){
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
17 if("AssertError Failure b.d(13) GO" == e.toString()){
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
18 return 0;
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
19 }
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
20 }
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
21
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
22 assert(0);
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
23 }
6caf8b7e726a [Issue 1121] Assertion codegen issue with templated function
thomask
parents:
diff changeset
24